From: Shawn Routhier Date: Thu, 21 May 2015 20:34:45 +0000 (-0700) Subject: [master] Allow the ADD token to be used as a hex string in IPv6 address X-Git-Tag: v4_3_3b1~23 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4136513e59b6906e585eac0f0fd88706bdefcb5b;p=thirdparty%2Fdhcp.git [master] Allow the ADD token to be used as a hex string in IPv6 address Allow the ADD token to be used as a hex string in IPv6 address --- diff --git a/RELNOTES b/RELNOTES index 5b6dc9796..42c6239ff 100644 --- a/RELNOTES +++ b/RELNOTES @@ -114,6 +114,10 @@ by Eric Young (eay@cryptsoft.com). the issue and suggesting the patch. [ISC-Bugs #38631] +- While parsing IPv6 addresses treat "add" as part of the address instead + of as a token. + [ISC-Bugs #39529] + Changes since 4.3.2rc2 - None diff --git a/common/parse.c b/common/parse.c index 779783191..94395cb66 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);