diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2012-08-02 18:37:12 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2012-08-02 18:37:12 (GMT) |
commit | a9a53c7dc055b54133f2dee33f1834d7566de842 (patch) | |
tree | fc16481c7e9123058e7c4ff703b021a1f86d8069 /Modules/getaddrinfo.c | |
parent | f37c0c73fef929a3bf3239bc10fd8ca0d63bcd9c (diff) | |
download | cpython-a9a53c7dc055b54133f2dee33f1834d7566de842.zip cpython-a9a53c7dc055b54133f2dee33f1834d7566de842.tar.gz cpython-a9a53c7dc055b54133f2dee33f1834d7566de842.tar.bz2 |
Issue #15538: Fix compilation of the getnameinfo() / getaddrinfo() emulation code.
Patch by Philipp Hagemeister.
Diffstat (limited to 'Modules/getaddrinfo.c')
-rw-r--r-- | Modules/getaddrinfo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/getaddrinfo.c b/Modules/getaddrinfo.c index a3ca30a..e2a2edf 100644 --- a/Modules/getaddrinfo.c +++ b/Modules/getaddrinfo.c @@ -430,7 +430,7 @@ getaddrinfo(const char*hostname, const char*servname, 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; |