From 780753fab2721f17605be5dd3d130e7e9c850c8a Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Fri, 17 Jul 2015 16:24:11 +0300 Subject: [PATCH] FST: Clear hostapd fst_ies on FST-DETACH to avoid use of freed memory This is needed in the corner case of FST-DETACH being used without stopping the AP instance. Signed-off-by: Jouni Malinen --- hostapd/ctrl_iface.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hostapd/ctrl_iface.c b/hostapd/ctrl_iface.c index 6e7f4f245..9f745f495 100644 --- a/hostapd/ctrl_iface.c +++ b/hostapd/ctrl_iface.c @@ -2571,6 +2571,7 @@ hostapd_global_ctrl_iface_fst_detach(struct hapd_interfaces *interfaces, if (hapd) { if (!fst_iface_detach(ifname)) { hapd->iface->fst = NULL; + hapd->iface->fst_ies = NULL; return 0; } }