From: Willem Toorop Date: Mon, 29 Mar 2021 10:25:59 +0000 (+0200) Subject: Fix ipv6hint=FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:255.255.255.255 X-Git-Tag: 1.8.0-rc.1~29 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c6dcbbb803709e433da27a880f443533937312bb;p=thirdparty%2Fldns.git Fix ipv6hint=FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:255.255.255.255 --- diff --git a/str2host.c b/str2host.c index 77089b04..ad6bd000 100644 --- a/str2host.c +++ b/str2host.c @@ -2135,11 +2135,11 @@ parse_svcparam_ipv6hint(const char **s, uint8_t **dp, uint8_t *eod) char ipv6_str[INET6_ADDRSTRLEN]; size_t len; - while (isxdigit(**s) || **s == ':') + while (isxdigit(**s) || **s == ':' || **s == '.') *s += 1; len = *s - ipv6_start; - if (len == 0 || len > 39) + if (len == 0 || len > INET6_ADDRSTRLEN) return LDNS_STATUS_SYNTAX_SVCPARAM_VALUE_ERR; if (*dp + 16 > eod)