]> git.ipfire.org Git - thirdparty/hostap.git/commit
tests: Fix ap-mgmt-fuzzer exit to free memory
authorJouni Malinen <jouni@codeaurora.org>
Fri, 24 May 2019 22:34:58 +0000 (01:34 +0300)
committerJouni Malinen <j@w1.fi>
Fri, 24 May 2019 22:34:58 +0000 (01:34 +0300)
commit27486bc5aba2c4a135dd1768b68c077c2cedc63c
tree70bf6699a46071f24a9e2d36ee2dad4840b55f02
parent5bad612311ae6127765002408b3d9e48e7b94da2
tests: Fix ap-mgmt-fuzzer exit to free memory

This fuzzing wrapper does not go through full hostapd_clean_iface() call
to free memory, so call ap_list_deinit() to avoid reporting memory leaks
from added AP list entries. This case could not be hit with
hostapd/wpa_supplicant since they perform full interface deinit on
interface removal.

Credit to OSS-Fuzz: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=14928
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
tests/ap-mgmt-fuzzer/ap-mgmt-fuzzer.c