mesh: Fix error path handling in init OOM cases
authorJouni Malinen <j@w1.fi>
Sun, 29 May 2016 22:04:00 +0000 (01:04 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 29 May 2016 22:05:16 +0000 (01:05 +0300)
commit9c10be3f7161ad67a6fb2083af18030f06f7804a
tree6297c4657b6bcc9efe4c89b2ff1c7af456144277
parent8f5abdb874c4b85c5bfb646fed9cd797362cc64c
mesh: Fix error path handling in init OOM cases

hostapd deinit functions were not ready to handle a case where the data
structures were not fully initialized. Make these more robust to allow
wpa_supplicant mesh implementation to use the current deinit design in
OOM error cases without causing NULL pointer dereferences.

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