diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-08-16 06:24:48 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-08-16 06:24:48 +0200 |
commit | c2dd57d2087c77c7317e4b802905b68ffd3d15c3 (patch) | |
tree | 8dd74c690164dac6daa81885b05a6e63854433c3 /src/lex.c | |
parent | cab67b91b8cc2f73f3e1eb2d24aa34a579475cc5 (diff) | |
download | fastd-c2dd57d2087c77c7317e4b802905b68ffd3d15c3.tar fastd-c2dd57d2087c77c7317e4b802905b68ffd3d15c3.zip |
lex: fix scanning of IPv6 addresses
Diffstat (limited to 'src/lex.c')
-rw-r--r-- | src/lex.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |