Fix ipv6hint=FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:255.255.255.255
@@ -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)
