mesh: Fix MESH_INTERFACE_ADD error path cleanup
authorJouni Malinen <j@w1.fi>
Sun, 29 May 2016 22:49:22 +0000 (01:49 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 29 May 2016 22:49:22 +0000 (01:49 +0300)
commit62fc8e6a40778f7ddec3155682b0621780000177
tree7191af3246d90aedd2d985c0608f50fbff3af5bc
parentb15acadcfd1de91112774310d5d1b8ad169f6cc2
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>
wpa_supplicant/mesh.c