aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd/ctrl_iface.c
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2015-07-17 13:24:11 (GMT)
committerJouni Malinen <j@w1.fi>2015-07-17 13:29:20 (GMT)
commit780753fab2721f17605be5dd3d130e7e9c850c8a (patch)
treef237eb7083d12a6fc6246be693bd575661744119 /hostapd/ctrl_iface.c
parentbe9fbd9b675d8ea1977677e029113514958be6e8 (diff)
downloadhostap-780753fab2721f17605be5dd3d130e7e9c850c8a.zip
hostap-780753fab2721f17605be5dd3d130e7e9c850c8a.tar.gz
hostap-780753fab2721f17605be5dd3d130e7e9c850c8a.tar.bz2
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 <jouni@qca.qualcomm.com>
Diffstat (limited to 'hostapd/ctrl_iface.c')
-rw-r--r--hostapd/ctrl_iface.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hostapd/ctrl_iface.c b/hostapd/ctrl_iface.c
index 6e7f4f2..9f745f4 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;
}
}