]> git.ipfire.org Git - thirdparty/hostap.git/commit
P2P: Deinitialize global P2P context on P2P mgmt interface removal
authorJouni Malinen <j@w1.fi>
Thu, 10 May 2012 07:49:22 +0000 (10:49 +0300)
committerJouni Malinen <j@w1.fi>
Thu, 10 May 2012 07:49:22 +0000 (10:49 +0300)
commitab28911dbf77fa050459fb30d28037f54c04bde6
tree86cbdc2ace06fcd9dbacf22b4c189a61db3ac287
parent2249d7149ebbe945f5145dd611b2633d82ef211d
P2P: Deinitialize global P2P context on P2P mgmt interface removal

The P2P implementation assumes that the first wpa_s interface instance
is used to manage P2P operations and the P2P module maintains a pointer
to this interface in msg_ctx. This can result in issues (e.g., use of
freed memory) when the management interface is removed. Fix this by
deinitializing global P2P data if the interface that created it is
removed. This will disable P2P until the next interface is added.

Signed-hostap: Jouni Malinen <j@w1.fi>
intended-for: hostap-1
wpa_supplicant/p2p_supplicant.c
wpa_supplicant/wpa_supplicant.c
wpa_supplicant/wpa_supplicant_i.h