aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/events.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2014-12-29 16:40:10 (GMT)
committerJouni Malinen <j@w1.fi>2014-12-29 18:00:02 (GMT)
commit4e70bbf1c68579b3223f1cac0ffcdbf1c52b4a55 (patch)
treed54c7efcc842a956cbadc58cbd1f9a19d5d90af0 /wpa_supplicant/events.c
parentfbfc974c6c4307a61b3b4eaf31923d3533dd52de (diff)
downloadhostap-4e70bbf1c68579b3223f1cac0ffcdbf1c52b4a55.zip
hostap-4e70bbf1c68579b3223f1cac0ffcdbf1c52b4a55.tar.gz
hostap-4e70bbf1c68579b3223f1cac0ffcdbf1c52b4a55.tar.bz2
SAE: Clear keys from memory on disassociation
There is no need to keep temporary keys in memory beyond the end of the association, so explicitly clear any SAE buffers that can contain keys as soon as such keys are not needed. Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'wpa_supplicant/events.c')
-rw-r--r--wpa_supplicant/events.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/wpa_supplicant/events.c b/wpa_supplicant/events.c
index 5ef64e6..7fe92ea 100644
--- a/wpa_supplicant/events.c
+++ b/wpa_supplicant/events.c
@@ -202,20 +202,12 @@ void wpa_supplicant_mark_disassoc(struct wpa_supplicant *wpa_s)
bssid_changed = !is_zero_ether_addr(wpa_s->bssid);
os_memset(wpa_s->bssid, 0, ETH_ALEN);
os_memset(wpa_s->pending_bssid, 0, ETH_ALEN);
-#ifdef CONFIG_SME
- wpa_s->sme.prev_bssid_set = 0;
-#endif /* CONFIG_SME */
+ sme_clear_on_disassoc(wpa_s);
#ifdef CONFIG_P2P
os_memset(wpa_s->go_dev_addr, 0, ETH_ALEN);
#endif /* CONFIG_P2P */
wpa_s->current_bss = NULL;
wpa_s->assoc_freq = 0;
-#ifdef CONFIG_IEEE80211R
-#ifdef CONFIG_SME
- if (wpa_s->sme.ft_ies)
- sme_update_ft_ies(wpa_s, NULL, NULL, 0);
-#endif /* CONFIG_SME */
-#endif /* CONFIG_IEEE80211R */
if (bssid_changed)
wpas_notify_bssid_changed(wpa_s);