mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-28 18:28:23 -05:00
WPS: Fix strict validation to mandate Network Index attribute
While this attribute is is now deprecated, it is still required for backwards compatibility. Better check this if strict validation is enabled.
This commit is contained in:
parent
e6e25d37a3
commit
5fabd9fefb
@ -1037,7 +1037,7 @@ static int wps_validate_cred(const u8 *cred, size_t len)
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (wps_validate_network_idx(attr.network_idx, 0) ||
|
||||
if (wps_validate_network_idx(attr.network_idx, 1) ||
|
||||
wps_validate_ssid(attr.ssid, attr.ssid_len, 1) ||
|
||||
wps_validate_auth_type(attr.auth_type, 1) ||
|
||||
wps_validate_encr_type(attr.encr_type, 1) ||
|
||||
|
Loading…
Reference in New Issue
Block a user