Commit 4136513e authored by Shawn Routhier's avatar Shawn Routhier

[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
parent 30dcfbf6
......@@ -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
......
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment