View | Details | Raw Unified | Return to bug 199678 | Differences between
and this patch

Collapse All | Expand All

(-)Makefile (+1 lines)
Lines 2-7 Link Here
2
2
3
PORTNAME=	wpa_supplicant
3
PORTNAME=	wpa_supplicant
4
PORTVERSION=	2.4
4
PORTVERSION=	2.4
5
PORTREVISION=	1
5
CATEGORIES=	security net
6
CATEGORIES=	security net
6
MASTER_SITES=	http://w1.fi/releases/
7
MASTER_SITES=	http://w1.fi/releases/
7
8
(-)files/patch-src_p2p_p2p.c (+10 lines)
Line 0 Link Here
1
--- src/p2p/p2p.c.orig	2015-04-24 22:44:26 UTC
2
+++ src/p2p/p2p.c
3
@@ -778,6 +778,7 @@ int p2p_add_device(struct p2p_data *p2p,
4
 	if (os_memcmp(addr, p2p_dev_addr, ETH_ALEN) != 0)
5
 		os_memcpy(dev->interface_addr, addr, ETH_ALEN);
6
 	if (msg.ssid &&
7
+	    msg.ssid[1] <= sizeof(dev->oper_ssid) &&
8
 	    (msg.ssid[1] != P2P_WILDCARD_SSID_LEN ||
9
 	     os_memcmp(msg.ssid + 2, P2P_WILDCARD_SSID, P2P_WILDCARD_SSID_LEN)
10
 	     != 0)) {

Return to bug 199678