From 5fabd9fefbef35b286520c8d31652e021530de87 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Tue, 20 Jul 2010 22:14:00 -0700 Subject: [PATCH] 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. --- src/wps/wps_validate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wps/wps_validate.c b/src/wps/wps_validate.c index 500c5a141..6969d6548 100644 --- a/src/wps/wps_validate.c +++ b/src/wps/wps_validate.c @@ -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) ||