]> git.ipfire.org Git - thirdparty/hostap.git/commit
Fix hostapd_add_iface error path to deinit partially initialized BSS
authorJouni Malinen <jouni@qca.qualcomm.com>
Fri, 14 Mar 2014 19:10:47 +0000 (21:10 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 14 Mar 2014 19:58:46 +0000 (21:58 +0200)
commitc9d9ee94e5a443ca11f9177cc8c532b0117bb204
treee8b38d46ec7d3ccbdffdfa8bcd8358260e79f509
parent6829da39e6cc164ea3fba9d28778f461f17124cc
Fix hostapd_add_iface error path to deinit partially initialized BSS

It was possible for the control interface and some of the BSS setup to
be left partially initialized in failure cases while the BSS structures
were still freed. Fix this by properly cleaning up anything that may
have passed initialization successfully before freeing memory.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
src/ap/hostapd.c