SAE: Fix group selection
Number of regressions had shown up in wpa_supplicant implementation of SAE group selection due to different integer array termination (-1 in hostapd, 0 in wpa_supplicant) being used for SAE groups. The default_groups list did not seem to use any explicit termination value. In addition, the sae_group_index was not cleared back to 0 properly whenever a new SAE session was started. Signed-hostap: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
f5f59e4f57
commit
18ca733248
2 changed files with 10 additions and 6 deletions
|
@ -678,7 +678,7 @@ static u16 sae_group_allowed(struct sae_data *sae, int *allowed_groups,
|
|||
{
|
||||
if (allowed_groups) {
|
||||
int i;
|
||||
for (i = 0; allowed_groups[i] >= 0; i++) {
|
||||
for (i = 0; allowed_groups[i] > 0; i++) {
|
||||
if (allowed_groups[i] == group)
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue