[PATCH v2] P2P: Fix crash during legacy client joining P2P group

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The peer_addr is missing when a legacy client joins a P2P group.
Ignoring the condition, fixes crash in supplicant.

Signed-off-by: Shyamakshi Ghosh <g.shyamakshi@xxxxxxxxxxx>
---
 wpa_supplicant/dbus/dbus_new.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/wpa_supplicant/dbus/dbus_new.c b/wpa_supplicant/dbus/dbus_new.c
index e0f16bb..3d8da70 100644
--- a/wpa_supplicant/dbus/dbus_new.c
+++ b/wpa_supplicant/dbus/dbus_new.c
@@ -1644,6 +1644,10 @@ void wpas_dbus_signal_p2p_peer_joined(struct wpa_supplicant *wpa_s,
 	if (iface == NULL)
 		return;
 
+	/* Do nothing if peer_addr is missing */
+	if (peer_addr == NULL)
+		return;
+
 	if (!wpa_s->dbus_groupobj_path)
 		return;
 
-- 
2.7.4


_______________________________________________
Hostap mailing list
Hostap@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/hostap



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux