mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-01 11:44:31 +02:00
SAE: Check that peer's rejected groups are not enabled in AP
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
This commit is contained in:
committed by
Shreyas Sheth
parent
be14d6c709
commit
ecea235913
@@ -2025,8 +2025,11 @@ static int sae_parse_rejected_groups(struct sae_data *sae,
|
|||||||
|
|
||||||
wpa_hexdump(MSG_DEBUG, "SAE: Possible elements at the end of the frame",
|
wpa_hexdump(MSG_DEBUG, "SAE: Possible elements at the end of the frame",
|
||||||
*pos, end - *pos);
|
*pos, end - *pos);
|
||||||
if (!sae_is_rejected_groups_elem(*pos, end))
|
if (!sae_is_rejected_groups_elem(*pos, end)) {
|
||||||
|
wpabuf_free(sae->tmp->peer_rejected_groups);
|
||||||
|
sae->tmp->peer_rejected_groups = NULL;
|
||||||
return WLAN_STATUS_SUCCESS;
|
return WLAN_STATUS_SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
epos = *pos;
|
epos = *pos;
|
||||||
epos++; /* skip IE type */
|
epos++; /* skip IE type */
|
||||||
@@ -2086,6 +2089,9 @@ u16 sae_parse_commit(struct sae_data *sae, const u8 *data, size_t len,
|
|||||||
res = sae_parse_rejected_groups(sae, &pos, end);
|
res = sae_parse_rejected_groups(sae, &pos, end);
|
||||||
if (res != WLAN_STATUS_SUCCESS)
|
if (res != WLAN_STATUS_SUCCESS)
|
||||||
return res;
|
return res;
|
||||||
|
} else {
|
||||||
|
wpabuf_free(sae->tmp->peer_rejected_groups);
|
||||||
|
sae->tmp->peer_rejected_groups = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Optional Anti-Clogging Token Container element */
|
/* Optional Anti-Clogging Token Container element */
|
||||||
|
Reference in New Issue
Block a user