FST: Clear hostapd fst_ies on FST-DETACH to avoid use of freed memory
authorJouni Malinen <jouni@qca.qualcomm.com>
Fri, 17 Jul 2015 13:24:11 +0000 (16:24 +0300)
committerJouni Malinen <j@w1.fi>
Fri, 17 Jul 2015 13:29:20 +0000 (16:29 +0300)
This is needed in the corner case of FST-DETACH being used without
stopping the AP instance.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
hostapd/ctrl_iface.c

index 6e7f4f2..9f745f4 100644 (file)
@@ -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;
                        }
                }