mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-25 16:58:41 -05:00
Fix hostapd interface addition error path
The local conf pointer needs to be cleared once it gets assigned to hapd_iface to avoid double-free of the configuration data on error path. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
6a964b7560
commit
c1c07dcb70
@ -2028,11 +2028,13 @@ int hostapd_add_iface(struct hapd_interfaces *interfaces, char *buf)
|
||||
"for hostapd", __func__);
|
||||
goto fail;
|
||||
}
|
||||
conf = NULL;
|
||||
|
||||
if (start_ctrl_iface(hapd_iface) < 0)
|
||||
goto fail;
|
||||
|
||||
wpa_printf(MSG_INFO, "Add interface '%s'", conf->bss[0]->iface);
|
||||
wpa_printf(MSG_INFO, "Add interface '%s'",
|
||||
hapd_iface->conf->bss[0]->iface);
|
||||
|
||||
return 0;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user