mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-18 02:44:03 -05:00
AP: Fix Extended Key ID parameter check
Check the new variable to be set instead the current setting. Signed-off-by: Alexander Wetzel <alexander@wetzel-home.de>
This commit is contained in:
parent
5cf5680e5c
commit
ff54340905
@ -2872,10 +2872,10 @@ static int hostapd_config_fill(struct hostapd_config *conf,
|
|||||||
} else if (os_strcmp(buf, "extended_key_id") == 0) {
|
} else if (os_strcmp(buf, "extended_key_id") == 0) {
|
||||||
int val = atoi(pos);
|
int val = atoi(pos);
|
||||||
|
|
||||||
if (bss->extended_key_id < 0 || bss->extended_key_id > 2) {
|
if (val < 0 || val > 2) {
|
||||||
wpa_printf(MSG_ERROR,
|
wpa_printf(MSG_ERROR,
|
||||||
"Line %d: Invalid extended_key_id=%d; allowed range 0..2",
|
"Line %d: Invalid extended_key_id=%d; allowed range 0..2",
|
||||||
line, bss->extended_key_id);
|
line, val);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
bss->extended_key_id = val;
|
bss->extended_key_id = val;
|
||||||
|
Loading…
Reference in New Issue
Block a user