projects
/
libeap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5548ddc
)
P2P: Fix cross connection allowed parser to use correct field
author
Jouni Malinen
<jouni.malinen@atheros.com>
Mon, 2 Aug 2010 23:02:18 +0000
(16:02 -0700)
committer
Jouni Malinen
<j@w1.fi>
Thu, 9 Sep 2010 14:17:22 +0000
(07:17 -0700)
The previous version had a bug that could result in NULL pointer
dereference if the P2P IE included Manageability attribute, but no
Capability attribute.
src/p2p/p2p_parse.c
patch
|
blob
|
history
diff --git
a/src/p2p/p2p_parse.c
b/src/p2p/p2p_parse.c
index
b82848e
..
bbd727a
100644
(file)
--- a/
src/p2p/p2p_parse.c
+++ b/
src/p2p/p2p_parse.c
@@
-661,7
+661,7
@@
int p2p_get_cross_connect_disallowed(const struct wpabuf *p2p_ie)
if (!msg.manageability)
return 0;
- return !(msg.
cap
ability[0] & P2P_MAN_CROSS_CONNECTIION_PERMITTED);
+ return !(msg.
manage
ability[0] & P2P_MAN_CROSS_CONNECTIION_PERMITTED);
}