summaryrefslogtreecommitdiffstats
path: root/src/lex.c
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2013-08-16 06:24:48 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2013-08-16 06:24:48 +0200
commitc2dd57d2087c77c7317e4b802905b68ffd3d15c3 (patch)
tree8dd74c690164dac6daa81885b05a6e63854433c3 /src/lex.c
parentcab67b91b8cc2f73f3e1eb2d24aa34a579475cc5 (diff)
downloadfastd-c2dd57d2087c77c7317e4b802905b68ffd3d15c3.tar
fastd-c2dd57d2087c77c7317e4b802905b68ffd3d15c3.zip
lex: fix scanning of IPv6 addresses
Diffstat (limited to 'src/lex.c')
-rw-r--r--src/lex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lex.c b/src/lex.c
index 5c293a3..59599ee 100644
--- a/src/lex.c
+++ b/src/lex.c
@@ -270,7 +270,7 @@ static int parse_ipv6_address(YYSTYPE *yylval, YYLTYPE *yylloc, fastd_lex_t *lex
char cur = current(lex);
- if (!((cur >= '0' && cur <= '9') || cur == ':'))
+ if (!((cur >= '0' && cur <= '9') || (cur >= 'a' && cur <= 'f') || (cur >= 'A' && cur <= 'F') || cur == ':'))
break;
}