]> git.ipfire.org Git - thirdparty/hostap.git/commit
WNM: Fix deinit path to clean neighbor report count
authorJouni Malinen <jouni@qca.qualcomm.com>
Mon, 7 Apr 2014 10:35:18 +0000 (13:35 +0300)
committerJouni Malinen <j@w1.fi>
Mon, 7 Apr 2014 10:40:45 +0000 (13:40 +0300)
commitec331d09a29c6b0dd5c59123688cd55f6dcdc31a
tree0c23a1f3aa4328e0f92b20215cdfe844ab7fc24e
parentf44c45ac7f7ff208b3de84dafd784a9aae7b43ea
WNM: Fix deinit path to clean neighbor report count

wnm_deallocate_memory() left wnm_num_neighbor_report set while freeing
the allocated buffer of neighbor reports. If this function was called
twice in a row without having went through new neighbor report parsing,
invalid pointers could have been freed resulted in segfault.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
wpa_supplicant/wnm_sta.c