diff options
Diffstat (limited to 'ares/ares_gethostbyaddr.c')
-rw-r--r-- | ares/ares_gethostbyaddr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ares/ares_gethostbyaddr.c b/ares/ares_gethostbyaddr.c index a415e36db..edf0db551 100644 --- a/ares/ares_gethostbyaddr.c +++ b/ares/ares_gethostbyaddr.c @@ -68,7 +68,7 @@ void ares_gethostbyaddr(ares_channel channel, const void *addr, int addrlen, return; } - if ((family == AF_INET && addrlen != sizeof(struct in_addr)) || + if ((family == AF_INET && addrlen != sizeof(struct in_addr)) || (family == AF_INET6 && addrlen != sizeof(struct in6_addr))) { callback(arg, ARES_ENOTIMP, NULL); @@ -107,7 +107,7 @@ static void next_lookup(struct addr_query *aquery) switch (*p) { case 'b': - if (aquery->family == AF_INET) + if (aquery->family == AF_INET) { addr = ntohl(aquery->addr.addr4.s_addr); a1 = (int)((addr >> 24) & 0xff); |