aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2014-03-30 14:19:20 (GMT)
committerJouni Malinen <j@w1.fi>2014-03-30 14:22:23 (GMT)
commit4be20bf9aab9f38127b5fa71139b306c608f7486 (patch)
tree20a855421e20fc1e4e071b6ed9611d957007f729 /hostapd
parent1d6f579ada9224be424ef233a6b88fc22e1e793c (diff)
downloadhostap-4be20bf9aab9f38127b5fa71139b306c608f7486.zip
hostap-4be20bf9aab9f38127b5fa71139b306c608f7486.tar.gz
hostap-4be20bf9aab9f38127b5fa71139b306c608f7486.tar.bz2
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>
Diffstat (limited to 'hostapd')
-rw-r--r--hostapd/config_file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hostapd/config_file.c b/hostapd/config_file.c
index dc82aba..e8863c5 100644
--- a/hostapd/config_file.c
+++ b/hostapd/config_file.c
@@ -1260,7 +1260,7 @@ static int parse_3gpp_cell_net(struct hostapd_bss_config *bss, char *buf,
count = 1;
for (pos = buf; *pos; pos++) {
- if ((*pos < '0' && *pos > '9') && *pos != ';' && *pos != ',')
+ if ((*pos < '0' || *pos > '9') && *pos != ';' && *pos != ',')
goto fail;
if (*pos == ';')
count++;