aboutsummaryrefslogtreecommitdiffstats
path: root/src/eapol_auth/eapol_auth_sm.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2016-02-06 14:31:28 (GMT)
committerJouni Malinen <j@w1.fi>2016-02-06 14:32:22 (GMT)
commitd689317ddbf58487432951a4afb2f4070eeb10b6 (patch)
tree882d705dbdfff9d438474cddb1b47bcdade2e26d /src/eapol_auth/eapol_auth_sm.c
parent0ae86f90430b38d4bfb2832585c31d3efa7f6b84 (diff)
downloadhostap-d689317ddbf58487432951a4afb2f4070eeb10b6.zip
hostap-d689317ddbf58487432951a4afb2f4070eeb10b6.tar.gz
hostap-d689317ddbf58487432951a4afb2f4070eeb10b6.tar.bz2
EAPOL auth: Move radius_cui/identity freeing to eapol_auth_free()
These can get allocated within eapol_auth_alloc(), so it is more logical to free them in eapol_auth_free() instead of ieee802_1x_free_station() that ends up calling eapol_auth_free(). Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'src/eapol_auth/eapol_auth_sm.c')
-rw-r--r--src/eapol_auth/eapol_auth_sm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/eapol_auth/eapol_auth_sm.c b/src/eapol_auth/eapol_auth_sm.c
index ff33d28..cdbec4e 100644
--- a/src/eapol_auth/eapol_auth_sm.c
+++ b/src/eapol_auth/eapol_auth_sm.c
@@ -884,6 +884,9 @@ void eapol_auth_free(struct eapol_state_machine *sm)
eloop_cancel_timeout(eapol_sm_step_cb, sm, NULL);
if (sm->eap)
eap_server_sm_deinit(sm->eap);
+
+ wpabuf_free(sm->radius_cui);
+ os_free(sm->identity);
os_free(sm);
}