]> git.ipfire.org Git - thirdparty/hostap.git/commit
P2P: Fix a potential memory leak in a P2P+NFC corner case
authorPurushottam Kushwaha <p.kushwaha@samsung.com>
Fri, 29 May 2015 09:20:41 +0000 (09:20 +0000)
committerJouni Malinen <j@w1.fi>
Fri, 29 May 2015 17:41:25 +0000 (20:41 +0300)
commiteda9d84dfdfad332213a708dcd7b7680078aeb66
treef92669fe203abd5a2a688db0702f2704ccb45d25
parent701d9729b3a7ff574c9ff29048b82c00df1a6a68
P2P: Fix a potential memory leak in a P2P+NFC corner case

Avoid memory leak due to previous allocation for ssid->ssid. It does not
look like this is hit in normal cases, but at might be possible for the
SSID to get set if the peer is present in previous scan results and WPS
code ends up copying the SSID from there.

Signed-off-by: Purushottam Kushwaha <p.kushwaha@samsung.com>
wpa_supplicant/wps_supplicant.c