aboutsummaryrefslogtreecommitdiffstats
path: root/src/eap_server/eap_server_aka.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2014-06-29 22:48:41 (GMT)
committerJouni Malinen <j@w1.fi>2014-07-02 09:38:48 (GMT)
commit0a13e06bdba710cc7e6ea8da391a595b5d33aba6 (patch)
treed984c752de6a327883186e02cb33b1daa7583f18 /src/eap_server/eap_server_aka.c
parentf534ee0804dc8d77434d2b534a118e86bd597694 (diff)
downloadhostap-0a13e06bdba710cc7e6ea8da391a595b5d33aba6.zip
hostap-0a13e06bdba710cc7e6ea8da391a595b5d33aba6.tar.gz
hostap-0a13e06bdba710cc7e6ea8da391a595b5d33aba6.tar.bz2
EAP server: Clear keying material on deinit
Reduce the amount of time keying material (MSK, EMSK, temporary private data) remains in memory in EAP methods. This provides additional protection should there be any issues that could expose process memory to external observers. Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'src/eap_server/eap_server_aka.c')
-rw-r--r--src/eap_server/eap_server_aka.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/eap_server/eap_server_aka.c b/src/eap_server/eap_server_aka.c
index 1907f20..09b976e 100644
--- a/src/eap_server/eap_server_aka.c
+++ b/src/eap_server/eap_server_aka.c
@@ -241,7 +241,7 @@ static void eap_aka_reset(struct eap_sm *sm, void *priv)
os_free(data->next_reauth_id);
wpabuf_free(data->id_msgs);
os_free(data->network_name);
- os_free(data);
+ bin_clear_free(data, sizeof(*data));
}