Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
77821b68
Commit
77821b68
authored
Aug 02, 2012
by
Antoine Pitrou
Browse files
Options
Browse Files
Download
Plain Diff
Issue #15538: Fix compilation of the getnameinfo() / getaddrinfo() emulation code.
Patch by Philipp Hagemeister.
parents
4941774f
a9a53c7d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
2 deletions
+5
-2
Misc/NEWS
Misc/NEWS
+3
-0
Modules/getaddrinfo.c
Modules/getaddrinfo.c
+1
-1
Modules/getnameinfo.c
Modules/getnameinfo.c
+1
-1
No files found.
Misc/NEWS
View file @
77821b68
...
...
@@ -72,6 +72,9 @@ Core and Builtins
Library
-------
-
Issue
#
15538
:
Fix
compilation
of
the
getnameinfo
()
/
getaddrinfo
()
emulation
code
.
Patch
by
Philipp
Hagemeister
.
-
Issue
#
15519
:
Properly
expose
WindowsRegistryFinder
in
importlib
(
and
use
the
correct
term
for
it
).
Original
patch
by
Eric
Snow
.
...
...
Modules/getaddrinfo.c
View file @
77821b68
...
...
@@ -430,7 +430,7 @@ getaddrinfo(const char*hostname, const char*servname,
break
;
#ifdef ENABLE_IPV6
case
AF_INET6
:
pfx
=
((
struct
in6_addr
*
)
pton
)
->
s6_addr
8
[
0
];
pfx
=
((
struct
in6_addr
*
)
pton
)
->
s6_addr
[
0
];
if
(
pfx
==
0
||
pfx
==
0xfe
||
pfx
==
0xff
)
pai
->
ai_flags
&=
~
AI_CANONNAME
;
break
;
...
...
Modules/getnameinfo.c
View file @
77821b68
...
...
@@ -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_addr
8
[
0
];
pfx
=
((
struct
sockaddr_in6
*
)
sa
)
->
sin6_addr
.
s6_addr
[
0
];
if
(
pfx
==
0
||
pfx
==
0xfe
||
pfx
==
0xff
)
flags
|=
NI_NUMERICHOST
;
break
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment