]> git.ipfire.org Git - thirdparty/hostap.git/commit
Fix DHCP/NDISC snoop deinit followed by failing re-init
authorJouni Malinen <j@w1.fi>
Sat, 4 Mar 2017 09:42:15 +0000 (11:42 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 4 Mar 2017 09:42:15 +0000 (11:42 +0200)
commitd4359923e1ea8bd618da51ce527f57c94b73c35b
tree0a824678587d65e04b3ad5da4e97d212d97802c9
parent6baab31c6c9ee78041441ae252364ffc24cb0429
Fix DHCP/NDISC snoop deinit followed by failing re-init

It was possible to hit a double-free on the l2_packet socket if
initialization of DHCP/NDISC snoop failed on a hostapd interface that
had previously had those enabled successfully. Fix this by clearing the
l2_packet pointers during deinit.

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