mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-28 18:28:23 -05:00
mesh: Fix MESH_INTERFACE_ADD error path cleanup
If wpa_supplicant_add_iface() fails, we need to remove the added netdev, not the existing wpa_s instance. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
b15acadcfd
commit
62fc8e6a40
@ -591,7 +591,7 @@ int wpas_mesh_add_interface(struct wpa_supplicant *wpa_s, char *ifname,
|
|||||||
if (!mesh_wpa_s) {
|
if (!mesh_wpa_s) {
|
||||||
wpa_printf(MSG_ERROR,
|
wpa_printf(MSG_ERROR,
|
||||||
"mesh: Failed to create new wpa_supplicant interface");
|
"mesh: Failed to create new wpa_supplicant interface");
|
||||||
wpa_supplicant_remove_iface(wpa_s->global, wpa_s, 0);
|
wpa_drv_if_remove(wpa_s, WPA_IF_MESH, ifname);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
mesh_wpa_s->mesh_if_created = 1;
|
mesh_wpa_s->mesh_if_created = 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user