summaryrefslogtreecommitdiffstats
path: root/Modules/getnameinfo.c
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/getnameinfo.c')
-rw-r--r--Modules/getnameinfo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/getnameinfo.c b/Modules/getnameinfo.c
index e9aeafb..f014c11 100644
--- a/Modules/getnameinfo.c
+++ b/Modules/getnameinfo.c
@@ -161,7 +161,7 @@ getnameinfo(sa, salen, host, hostlen, serv, servlen, flags)
break;
#ifdef ENABLE_IPV6
case AF_INET6:
- pfx = ((struct sockaddr_in6 *)sa)->sin6_addr.s6_addr8[0];
+ pfx = ((struct sockaddr_in6 *)sa)->sin6_addr.s6_addr[0];
if (pfx == 0 || pfx == 0xfe || pfx == 0xff)
flags |= NI_NUMERICHOST;
break;