Tighten up _getdns_ipaddr_dict_mf() so it does not grab random strings beginning with '*'

This commit is contained in:
uzlonewolf 2021-12-03 18:54:42 -08:00 committed by Willem Toorop
parent 8e2accfd74
commit 2d7d8a4ea5
1 changed files with 1 additions and 1 deletions

View File

@ -1189,7 +1189,7 @@ _getdns_ipaddr_dict_mf(struct mem_funcs *mf, const char *ipstr)
tsig_name_str = "";
}
}
if (*ipstr == '*') {
if (*ipstr == '*' && *(ipstr+1) == '\0') {
getdns_dict_util_set_string(r, "address_type", "IPv6");
addr.size = 16;
(void) memset(buf, 0, 16);