summaryrefslogtreecommitdiff
path: root/common/parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/parse.c')
-rw-r--r--common/parse.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/common/parse.c b/common/parse.c
index 77978319..94395cb6 100644
--- a/common/parse.c
+++ b/common/parse.c
@@ -384,10 +384,11 @@ parse_ip6_addr(struct parse *cfile, struct iaddr *addr) {
*/
v6_len = 0;
for (;;) {
- if ((((token == NAME) || (token == NUMBER_OR_NAME)) &&
+ if ((((token == NAME) || (token == NUMBER_OR_NAME)) &&
is_hex_string(val)) ||
- (token == NUMBER) ||
- (token == DOT) ||
+ (token == NUMBER) ||
+ (token == TOKEN_ADD) ||
+ (token == DOT) ||
(token == COLON)) {
next_raw_token(&val, NULL, cfile);