diff options
author | Jouni Malinen <j@w1.fi> | 2009-12-19 16:34:41 +0200 |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2009-12-19 16:34:41 +0200 |
commit | 9e7245bdb414dec167363b9178a37f4745afa595 (patch) | |
tree | bcb52c9731b1af430703926c1de98124465afcca /radius_example | |
parent | d94f86d85ef1a846ff91fe3c66b368c1d535352c (diff) | |
download | external_wpa_supplicant_8_ti-9e7245bdb414dec167363b9178a37f4745afa595.zip external_wpa_supplicant_8_ti-9e7245bdb414dec167363b9178a37f4745afa595.tar.gz external_wpa_supplicant_8_ti-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')
-rw-r--r-- | radius_example/radius_example.c | 3 |
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; } |