]> git.ipfire.org Git - thirdparty/hostap.git/commit
P2P: Do not call wpas_p2p_disconnect_safely() if no match is found
authorJouni Malinen <j@w1.fi>
Mon, 27 Oct 2014 23:47:17 +0000 (01:47 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 27 Oct 2014 23:50:22 +0000 (01:50 +0200)
commit3586d55a5d2d2af4fabf85ae72ceb5af6897871c
tree28b7535cdd5b8a56dd1462c60d6780fa5f02eea1
parent10bbe8b8edd2343589dc0c75c010d3f9858f8724
P2P: Do not call wpas_p2p_disconnect_safely() if no match is found

In theory, wpas_p2p_disconnect_safely() could have dereferenced the
wpa_s == NULL argument, but in practice, it won't due to the
calling_wpa_s == wpa_s check and wpas_p2p_disconnect() accepting NULL.
Anyway, it is cleaner to add an explicit check for this. (CID 74492)

Signed-off-by: Jouni Malinen <j@w1.fi>
wpa_supplicant/p2p_supplicant.c