mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-17 18:34:03 -05:00
hostapd: Deinit ctrl_iface in case of add interface failure
Since the control interface is now initialized as part of hostapd_setup_interface(), it needs to be deinitialized on the error path. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
8540e0b520
commit
486d2ff0eb
@ -1806,8 +1806,14 @@ fail:
|
|||||||
hostapd_config_free(conf);
|
hostapd_config_free(conf);
|
||||||
if (hapd_iface) {
|
if (hapd_iface) {
|
||||||
if (hapd_iface->bss) {
|
if (hapd_iface->bss) {
|
||||||
for (i = 0; i < hapd_iface->num_bss; i++)
|
for (i = 0; i < hapd_iface->num_bss; i++) {
|
||||||
|
hapd = hapd_iface->bss[i];
|
||||||
|
if (hapd && hapd_iface->interfaces &&
|
||||||
|
hapd_iface->interfaces->ctrl_iface_deinit)
|
||||||
|
hapd_iface->interfaces->
|
||||||
|
ctrl_iface_deinit(hapd);
|
||||||
os_free(hapd_iface->bss[i]);
|
os_free(hapd_iface->bss[i]);
|
||||||
|
}
|
||||||
os_free(hapd_iface->bss);
|
os_free(hapd_iface->bss);
|
||||||
}
|
}
|
||||||
os_free(hapd_iface);
|
os_free(hapd_iface);
|
||||||
|
Loading…
Reference in New Issue
Block a user