]> git.ipfire.org Git - thirdparty/hostap.git/commit - src/p2p/p2p.c
Fix memory leaks and wrong memory access
authorEytan Lifshitz <eytan.lifshitz@intel.com>
Tue, 28 Jan 2014 07:32:35 +0000 (09:32 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 30 Jan 2014 12:01:31 +0000 (14:01 +0200)
commit04c366cb1d25156db10c7ebecc1e3ca23fbd5746
treea4e34c66fadab3c06c52c41feadb4aa8c942073f
parentfd67275b85fb9eeb3803991d62d74ddf3783d853
Fix memory leaks and wrong memory access

1. In wpa_config_process_bgscan() fix memory leak after
   calling wpa_config_parse_string()
2. In hostapd_config_defaults(), on failure to allocate bss->radius,
   conf->bss was not freed.
3. In p2p_deauth_nofif(), memory allocated in p2p_parse_ies() was not
   freed in case of NULL minor_reason_code.
4. In p2p_disassoc_nofif(), memory allocated in p2p_parse_ies() was
   not freed in case of NULL minor_reason_code.
5. In p2p_process_go_neg_conf(), memory allocated was not freed in
   case that the P2P Device interface was not waiting for a
   GO Negotiation Confirm.
6. In wpa_set_pkcs11_engine_and_module_path(), the wrong pointer was
   checked.

Signed-hostap: Eytan Lifshitz <eytan.lifshitz@intel.com>
src/ap/ap_config.c
src/p2p/p2p.c
src/p2p/p2p_go_neg.c
wpa_supplicant/config.c
wpa_supplicant/wpa_supplicant.c