projects
/
mech_eap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d6f579
)
Fix validation of anqp_3gpp_cell_net configuration parameter
author
Jouni Malinen
<j@w1.fi>
Sun, 30 Mar 2014 14:19:20 +0000
(17:19 +0300)
committer
Jouni Malinen
<j@w1.fi>
Sun, 30 Mar 2014 14:22:23 +0000
(17:22 +0300)
The "< '0' && > '9'" part would not match any character.
Signed-off-by: Jouni Malinen <j@w1.fi>
hostapd/config_file.c
patch
|
blob
|
history
diff --git
a/hostapd/config_file.c
b/hostapd/config_file.c
index
dc82aba
..
e8863c5
100644
(file)
--- 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++;