mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-17 18:34:03 -05:00
hostapd: Fix error path in hostapd_add_iface()
Incorrect count variable was used in freeing up the BSS data. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
770ecdf27c
commit
33b0b330ce
@ -1406,7 +1406,11 @@ fail:
|
|||||||
if (conf)
|
if (conf)
|
||||||
hostapd_config_free(conf);
|
hostapd_config_free(conf);
|
||||||
if (hapd_iface) {
|
if (hapd_iface) {
|
||||||
os_free(hapd_iface->bss[interfaces->count]);
|
if (hapd_iface->bss) {
|
||||||
|
for (i = 0; i < hapd_iface->num_bss; i++)
|
||||||
|
os_free(hapd_iface->bss[i]);
|
||||||
|
os_free(hapd_iface->bss);
|
||||||
|
}
|
||||||
os_free(hapd_iface);
|
os_free(hapd_iface);
|
||||||
}
|
}
|
||||||
return -1;
|
return -1;
|
||||||
|
Loading…
Reference in New Issue
Block a user