aboutsummaryrefslogtreecommitdiff
path: root/ares/ares_gethostbyaddr.c
diff options
context:
space:
mode:
Diffstat (limited to 'ares/ares_gethostbyaddr.c')
-rw-r--r--ares/ares_gethostbyaddr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ares/ares_gethostbyaddr.c b/ares/ares_gethostbyaddr.c
index 4b1dad36d..a2c3a9076 100644
--- a/ares/ares_gethostbyaddr.c
+++ b/ares/ares_gethostbyaddr.c
@@ -272,7 +272,7 @@ static void ptr_rr_name(char *name, const struct ares_addr *addr)
}
else
{
- unsigned char *bytes = (unsigned char *)&addr->addrV6.s6_addr;
+ unsigned char *bytes = (unsigned char *)&addr->addrV6;
/* There are too many arguments to do this in one line using
* minimally C89-compliant compilers */
sprintf(name,