From c6dcbbb803709e433da27a880f443533937312bb Mon Sep 17 00:00:00 2001 From: Willem Toorop Date: Mon, 29 Mar 2021 12:25:59 +0200 Subject: [PATCH] Fix ipv6hint=FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:255.255.255.255 --- str2host.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) -- 2.47.3