]> git.ipfire.org Git - thirdparty/hostap.git/commit
mesh: Fix mesh interface removal fix
authorJouni Malinen <j@w1.fi>
Sat, 4 Feb 2017 19:24:37 +0000 (21:24 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 4 Feb 2017 19:24:37 +0000 (21:24 +0200)
commit9b170991ac15032624ab330fc10534e237579999
treeb4ae034d6360c4fd319af2e06e7f26433f19aa1a
parent945604a355c4c919587faefaced2b966f350defe
mesh: Fix mesh interface removal fix

This wpa_drv_if_remove() call was previously modified to fix a different
issue, but that fix resulted in unconditional use of treed memory here
(wpa_supplicant_deinit_iface() frees wpa_s). Make a local copy of
wpa_s->parent to be able to use it after wpa_s is freed. The
mesh_if_created case has wpa_s->parent != wpa_s, so this should be
sufficient way of handling the wpa_drv_if_remove() call here.

Signed-off-by: Jouni Malinen <j@w1.fi>
wpa_supplicant/wpa_supplicant.c