mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-25 08:48:31 -05:00
WPS: Fix strict validation of (Re)Association Response
This frame is supposed to include Response Type, not Request Type attribute.
This commit is contained in:
parent
0e2e565a44
commit
82fb18472e
@ -1275,7 +1275,7 @@ int wps_validate_assoc_resp(const struct wpabuf *wps_ie)
|
|||||||
|
|
||||||
wps2 = attr.version2 != NULL;
|
wps2 = attr.version2 != NULL;
|
||||||
if (wps_validate_version(attr.version, 1) ||
|
if (wps_validate_version(attr.version, 1) ||
|
||||||
wps_validate_request_type(attr.request_type, 1) ||
|
wps_validate_response_type(attr.response_type, 1) ||
|
||||||
wps_validate_version2(attr.version2, wps2)) {
|
wps_validate_version2(attr.version2, wps2)) {
|
||||||
wpa_printf(MSG_INFO, "WPS-STRICT: Invalid (Re)Association "
|
wpa_printf(MSG_INFO, "WPS-STRICT: Invalid (Re)Association "
|
||||||
"Response frame");
|
"Response frame");
|
||||||
|
Loading…
Reference in New Issue
Block a user