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
parent 2964c4ee96
commit 2944ffc844
No known key found for this signature in database
GPG Key ID: BE9A745E602A390E
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);