diff --git a/src/lib/ares_init.c b/src/lib/ares_init.c index 0ef287f9..05d502df 100644 --- a/src/lib/ares_init.c +++ b/src/lib/ares_init.c @@ -956,7 +956,7 @@ static int get_DNS_Windows(char **outptr) sizeof(addresses[addressesIndex].text), "[%s]:%u", ipaddr, - ntohs(namesrvr.sa4->sin_port)); + ntohs(namesrvr.sa6->sin6_port)); ++addressesIndex; } else {