projects
/
libeap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0e2e565
)
WPS: Fix strict validation of (Re)Association Response
author
Jouni Malinen
<jouni.malinen@atheros.com>
Wed, 22 Sep 2010 18:13:18 +0000
(11:13 -0700)
committer
Jouni Malinen
<j@w1.fi>
Wed, 22 Sep 2010 18:13:18 +0000
(11:13 -0700)
This frame is supposed to include Response Type, not Request Type
attribute.
src/wps/wps_validate.c
patch
|
blob
|
history
diff --git
a/src/wps/wps_validate.c
b/src/wps/wps_validate.c
index
dd1ccf2
..
8e3d5c1
100644
(file)
--- a/
src/wps/wps_validate.c
+++ b/
src/wps/wps_validate.c
@@
-1275,7
+1275,7
@@
int wps_validate_assoc_resp(const struct wpabuf *wps_ie)
wps2 = attr.version2 != NULL;
if (wps_validate_version(attr.version, 1) ||
- wps_validate_re
quest_type(attr.request
_type, 1) ||
+ wps_validate_re
sponse_type(attr.response
_type, 1) ||
wps_validate_version2(attr.version2, wps2)) {
wpa_printf(MSG_INFO, "WPS-STRICT: Invalid (Re)Association "
"Response frame");