aboutsummaryrefslogtreecommitdiffstats
path: root/radius_example/radius_example.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2009-12-19 14:34:41 (GMT)
committerJouni Malinen <j@w1.fi>2009-12-19 14:34:41 (GMT)
commit9e7245bdb414dec167363b9178a37f4745afa595 (patch)
treebcb52c9731b1af430703926c1de98124465afcca /radius_example/radius_example.c
parentd94f86d85ef1a846ff91fe3c66b368c1d535352c (diff)
downloadhostap-9e7245bdb414dec167363b9178a37f4745afa595.zip
hostap-9e7245bdb414dec167363b9178a37f4745afa595.tar.gz
hostap-9e7245bdb414dec167363b9178a37f4745afa595.tar.bz2
Change radius_msg_free() to free the buffer
Since all callers were freeing the buffer immediately anyway, move this operation into radius_msg_free() to reduce code size.
Diffstat (limited to 'radius_example/radius_example.c')
-rw-r--r--radius_example/radius_example.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/radius_example/radius_example.c b/radius_example/radius_example.c
index 1b27efc..59982ab 100644
--- a/radius_example/radius_example.c
+++ b/radius_example/radius_example.c
@@ -74,7 +74,6 @@ static void start_example(void *eloop_ctx, void *timeout_ctx)
(u8 *) "user", 4)) {
printf("Could not add User-Name\n");
radius_msg_free(msg);
- os_free(msg);
return;
}
@@ -84,7 +83,6 @@ static void start_example(void *eloop_ctx, void *timeout_ctx)
ctx->conf.auth_server->shared_secret_len)) {
printf("Could not add User-Password\n");
radius_msg_free(msg);
- os_free(msg);
return;
}
@@ -92,7 +90,6 @@ static void start_example(void *eloop_ctx, void *timeout_ctx)
(u8 *) &ctx->own_ip_addr, 4)) {
printf("Could not add NAS-IP-Address\n");
radius_msg_free(msg);
- os_free(msg);
return;
}