commit | 1fa9f7b3d1d5c90cb231946a6edaf7f748e07436 | [log] [tgz] |
---|---|---|
author | Antoine Pitrou <solipsis@pitrou.net> | Thu Aug 02 20:37:12 2012 +0200 |
committer | Antoine Pitrou <solipsis@pitrou.net> | Thu Aug 02 20:37:12 2012 +0200 |
tree | 5cd2100e4f4c0e61f3e344ace57f96b1aaccef84 | |
parent | 4c36aa4108a15c990494ab3c6ab83634a774681f [diff] [blame] |
Issue #15538: Fix compilation of the getnameinfo() / getaddrinfo() emulation code. Patch by Philipp Hagemeister.
diff --git a/Modules/getaddrinfo.c b/Modules/getaddrinfo.c index 1d0bfbb..9d054d0 100644 --- a/Modules/getaddrinfo.c +++ b/Modules/getaddrinfo.c
@@ -430,7 +430,7 @@ break; #ifdef ENABLE_IPV6 case AF_INET6: - pfx = ((struct in6_addr *)pton)->s6_addr8[0]; + pfx = ((struct in6_addr *)pton)->s6_addr[0]; if (pfx == 0 || pfx == 0xfe || pfx == 0xff) pai->ai_flags &= ~AI_CANONNAME; break;