Fix validation of anqp_3gpp_cell_net configuration parameter
The "< '0' && > '9'" part would not match any character. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
1d6f579ada
commit
4be20bf9aa
1 changed files with 1 additions and 1 deletions
|
@ -1260,7 +1260,7 @@ static int parse_3gpp_cell_net(struct hostapd_bss_config *bss, char *buf,
|
||||||
|
|
||||||
count = 1;
|
count = 1;
|
||||||
for (pos = buf; *pos; pos++) {
|
for (pos = buf; *pos; pos++) {
|
||||||
if ((*pos < '0' && *pos > '9') && *pos != ';' && *pos != ',')
|
if ((*pos < '0' || *pos > '9') && *pos != ';' && *pos != ',')
|
||||||
goto fail;
|
goto fail;
|
||||||
if (*pos == ';')
|
if (*pos == ';')
|
||||||
count++;
|
count++;
|
||||||
|
|
Loading…
Reference in a new issue