[PATCH 1/1] Remove duplicated ibss_rsn_deinit
Eduardo Abinader
eduardo.abinader
Wed May 7 15:42:52 PDT 2014
Avoid invalid read scenarios for duplicated
ibss_rsn_deinit, as it is already being called by
wpa_supplicant_mark_disassoc.
Signed-off-by: Eduardo Abinader <eduardo.abinader at openbossa.org>
---
wpa_supplicant/events.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/wpa_supplicant/events.c b/wpa_supplicant/events.c
index e2577bf..086c510 100644
--- a/wpa_supplicant/events.c
+++ b/wpa_supplicant/events.c
@@ -2379,10 +2379,6 @@ wpa_supplicant_event_interface_status(struct wpa_supplicant *wpa_s,
wpa_supplicant_set_state(wpa_s, WPA_INTERFACE_DISABLED);
l2_packet_deinit(wpa_s->l2);
wpa_s->l2 = NULL;
-#ifdef CONFIG_IBSS_RSN
- ibss_rsn_deinit(wpa_s->ibss_rsn);
- wpa_s->ibss_rsn = NULL;
-#endif /* CONFIG_IBSS_RSN */
#ifdef CONFIG_TERMINATE_ONLASTIF
/* check if last interface */
if (!any_interfaces(wpa_s->global->ifaces))
--
1.9.1
More information about the Hostap
mailing list