Fix the creation of a zero IPv6 address

Fix #1517
This commit is contained in:
Yihong Wu committed 2021-12-12 20:05:36 +08:00
1 parent b91d9af5e3
commit fc94843579
1 file changed
+1 -1
+1 -1
View File
@@ -330,7 +330,7 @@ bool DnsResolve(IP *ipv6, IP *ipv4, const char *hostname, UINT timeout, volatile
} }
else else
{ {
Zero(ipv6, sizeof(ipv6)); Zero(ipv6, sizeof(IP));
} }
if (ipv4 != NULL && LIST_NUM(iplist_v4) > 0) if (ipv4 != NULL && LIST_NUM(iplist_v4) > 0)