aboutsummaryrefslogtreecommitdiffstats
path: root/src/ap/wpa_auth_glue.c
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2013-09-25 15:14:13 (GMT)
committerJouni Malinen <j@w1.fi>2013-09-25 15:14:13 (GMT)
commit66f4dd155043f3837b898c21acb9252699a92bcd (patch)
tree370f53f5c7208869f355e3012bdb8fb4bb5dec2f /src/ap/wpa_auth_glue.c
parentf18b7817ec2a4fa166b77f9ce1ad932ee3f7d58e (diff)
downloadhostap-66f4dd155043f3837b898c21acb9252699a92bcd.zip
hostap-66f4dd155043f3837b898c21acb9252699a92bcd.tar.gz
hostap-66f4dd155043f3837b898c21acb9252699a92bcd.tar.bz2
hostapd: Fix couple of deinit path cases to clear pointers
This fixes some issues where dynamic interface enable/disable cycles could end up trying to free resources twice and crash the process while doing so. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'src/ap/wpa_auth_glue.c')
-rw-r--r--src/ap/wpa_auth_glue.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ap/wpa_auth_glue.c b/src/ap/wpa_auth_glue.c
index d977b42..cbaab9f 100644
--- a/src/ap/wpa_auth_glue.c
+++ b/src/ap/wpa_auth_glue.c
@@ -618,5 +618,6 @@ void hostapd_deinit_wpa(struct hostapd_data *hapd)
#ifdef CONFIG_IEEE80211R
l2_packet_deinit(hapd->l2);
+ hapd->l2 = NULL;
#endif /* CONFIG_IEEE80211R */
}