summaryrefslogtreecommitdiff
path: root/ares_gethostbyname.c
diff options
context:
space:
mode:
Diffstat (limited to 'ares_gethostbyname.c')
-rw-r--r--ares_gethostbyname.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ares_gethostbyname.c b/ares_gethostbyname.c
index bf88309..ebad670 100644
--- a/ares_gethostbyname.c
+++ b/ares_gethostbyname.c
@@ -504,7 +504,9 @@ static int get6_address_index(const struct ares_in6_addr *addr,
{
if (sortlist[i].family != AF_INET6)
continue;
- if (!ares_bitncmp(&addr->s6_addr, &sortlist[i].addrV6.s6_addr, sortlist[i].mask.bits))
+ if (!ares_bitncmp(addr,
+ &sortlist[i].addrV6,
+ sortlist[i].mask.bits))
break;
}
return i;