From: Jouni Malinen Date: Sun, 30 Mar 2014 14:19:20 +0000 (+0300) Subject: Fix validation of anqp_3gpp_cell_net configuration parameter X-Git-Tag: hostap_2_2~412 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4be20bf9aab9f38127b5fa71139b306c608f7486;p=thirdparty%2Fhostap.git Fix validation of anqp_3gpp_cell_net configuration parameter The "< '0' && > '9'" part would not match any character. Signed-off-by: Jouni Malinen --- diff --git a/hostapd/config_file.c b/hostapd/config_file.c index dc82aba4c..e8863c5d5 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++;