diff options
author | Jouni Malinen <j@w1.fi> | 2012-05-03 22:05:04 +0300 |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2012-05-03 22:05:04 +0300 |
commit | 057a92ec5c93c180277744a9de228e4142e6a3af (patch) | |
tree | 765b2b18bd3d7fb2d04db7b14805356be4635f08 /hostapd | |
parent | f765701faf05c1773a44865728e74cd60c6cde18 (diff) | |
download | external_wpa_supplicant_8_ti-057a92ec5c93c180277744a9de228e4142e6a3af.zip external_wpa_supplicant_8_ti-057a92ec5c93c180277744a9de228e4142e6a3af.tar.gz external_wpa_supplicant_8_ti-057a92ec5c93c180277744a9de228e4142e6a3af.tar.bz2 |
hlr_auc_gw: Fix CONFIG_WPA_TRACE=y build
Need to initialize tracing code and use correct free() wrapper.
Signed-hostap: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'hostapd')
-rw-r--r-- | hostapd/hlr_auc_gw.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/hostapd/hlr_auc_gw.c b/hostapd/hlr_auc_gw.c index 3c3a758..8b7455f 100644 --- a/hostapd/hlr_auc_gw.c +++ b/hostapd/hlr_auc_gw.c @@ -210,7 +210,7 @@ static int read_gsm_triplets(const char *fname) gsm_db = g; g = NULL; } - free(g); + os_free(g); fclose(f); @@ -360,7 +360,7 @@ static int read_milenage(const char *fname) milenage_db = m; m = NULL; } - free(m); + os_free(m); fclose(f); @@ -613,14 +613,14 @@ static void cleanup(void) while (g) { gprev = g; g = g->next; - free(gprev); + os_free(gprev); } m = milenage_db; while (m) { prev = m; m = m->next; - free(prev); + os_free(prev); } close(serv_sock); @@ -661,6 +661,9 @@ int main(int argc, char *argv[]) char *milenage_file = NULL; char *gsm_triplet_file = NULL; + if (os_program_init()) + return -1; + socket_path = default_socket_path; for (;;) { @@ -705,5 +708,7 @@ int main(int argc, char *argv[]) for (;;) process(serv_sock); + os_program_deinit(); + return 0; } |