aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/sme.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2013-01-06 17:06:59 (GMT)
committerJouni Malinen <j@w1.fi>2013-01-12 15:51:54 (GMT)
commitb4fd3613d313d5527e4a2b1ad34a6ca5a9965497 (patch)
tree2a3f27df459ccd5a1b1b5d4a90bfce4439e94971 /wpa_supplicant/sme.c
parent30846fa65fd0aa944149311086f6f7a3dbd612a7 (diff)
downloadhostap-b4fd3613d313d5527e4a2b1ad34a6ca5a9965497.zip
hostap-b4fd3613d313d5527e4a2b1ad34a6ca5a9965497.tar.gz
hostap-b4fd3613d313d5527e4a2b1ad34a6ca5a9965497.tar.bz2
SAE: Free temporary buffers when moving to Accepted state
Most of the variables are not needed anymore once the SAE instance has entered Accepted state. Free these to save memory. Signed-hostap: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'wpa_supplicant/sme.c')
-rw-r--r--wpa_supplicant/sme.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/wpa_supplicant/sme.c b/wpa_supplicant/sme.c
index 1c760e7..cb94db8 100644
--- a/wpa_supplicant/sme.c
+++ b/wpa_supplicant/sme.c
@@ -511,6 +511,7 @@ static int sme_sae_auth(struct wpa_supplicant *wpa_s, u16 auth_transaction,
if (sae_check_confirm(&wpa_s->sme.sae, data, len) < 0)
return -1;
wpa_s->sme.sae.state = SAE_ACCEPTED;
+ sae_clear_temp_data(&wpa_s->sme.sae);
return 1;
}