From fc9484357952111e7a82c0473d08c51b6908fb03 Mon Sep 17 00:00:00 2001 From: Yihong Wu <54519668+domosekai@users.noreply.github.com> Date: Sun, 12 Dec 2021 17:21:11 +0800 Subject: [PATCH] Fix the creation of a zero IPv6 address Fix #1517 --- src/Mayaqua/DNS.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mayaqua/DNS.c b/src/Mayaqua/DNS.c index 92b3ef63..9ff196bf 100644 --- a/src/Mayaqua/DNS.c +++ b/src/Mayaqua/DNS.c @@ -330,7 +330,7 @@ bool DnsResolve(IP *ipv6, IP *ipv4, const char *hostname, UINT timeout, volatile } else { - Zero(ipv6, sizeof(ipv6)); + Zero(ipv6, sizeof(IP)); } if (ipv4 != NULL && LIST_NUM(iplist_v4) > 0)