commit dee670312207560509b3a9f3e9e86e8d4c86b620
parent 9887c376b7d5ac8270b840262941de8c51f784d0
Author: James Prestwood <james.prestwood@linux.intel.com>
Date: Tue, 19 Mar 2019 11:36:49 -0700
sae: check group number on UNSUPP_FINITE_CYCLIC_GROUP
Hostapd has now been updated to include the group number when rejecting
the connection with UNSUPP_FINITE_CYCLIC_GROUP. We still need the existing
len == 0 check because old hostapd versions will still behave this way.
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/sae.c b/src/sae.c
@@ -758,6 +758,8 @@ static bool sae_verify_committed(struct sae_sm *sm, uint16_t transaction,
*/
if (len == 0)
l_warn("AP did not include group number in response!");
+ else if (len >= 2 && (l_get_le16(frame) != sm->group))
+ return false;
sm->group_retry++;