aboutsummaryrefslogtreecommitdiffstats
path: root/src/eap_server/eap_server_psk.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_psk.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_psk.c')
-rw-r--r--src/eap_server/eap_server_psk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/eap_server/eap_server_psk.c b/src/eap_server/eap_server_psk.c
index 2cff493..db394e9 100644
--- a/src/eap_server/eap_server_psk.c
+++ b/src/eap_server/eap_server_psk.c
@@ -47,7 +47,7 @@ static void eap_psk_reset(struct eap_sm *sm, void *priv)
{
struct eap_psk_data *data = priv;
os_free(data->id_p);
- os_free(data);
+ bin_clear_free(data, sizeof(*data));
}