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>
This commit is contained in:
Jouni Malinen 2015-07-17 16:24:11 +03:00 committed by Jouni Malinen
parent be9fbd9b67
commit 780753fab2

View File

@ -2571,6 +2571,7 @@ hostapd_global_ctrl_iface_fst_detach(struct hapd_interfaces *interfaces,
if (hapd) { if (hapd) {
if (!fst_iface_detach(ifname)) { if (!fst_iface_detach(ifname)) {
hapd->iface->fst = NULL; hapd->iface->fst = NULL;
hapd->iface->fst_ies = NULL;
return 0; return 0;
} }
} }