mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-28 18:28:23 -05:00
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:
parent
be9fbd9b67
commit
780753fab2
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user