projects
/
mech_eap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b15acad
)
mesh: Fix MESH_INTERFACE_ADD error path cleanup
author
Jouni Malinen
<j@w1.fi>
Sun, 29 May 2016 22:49:22 +0000
(
01:49
+0300)
committer
Jouni Malinen
<j@w1.fi>
Sun, 29 May 2016 22:49:22 +0000
(
01:49
+0300)
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>
wpa_supplicant/mesh.c
patch
|
blob
|
history
diff --git
a/wpa_supplicant/mesh.c
b/wpa_supplicant/mesh.c
index
89b033b
..
b13d5a1
100644
(file)
--- a/
wpa_supplicant/mesh.c
+++ b/
wpa_supplicant/mesh.c
@@
-591,7
+591,7
@@
int wpas_mesh_add_interface(struct wpa_supplicant *wpa_s, char *ifname,
if (!mesh_wpa_s) {
wpa_printf(MSG_ERROR,
"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;
}
mesh_wpa_s->mesh_if_created = 1;