[Bug network/14211] New: getaddrinfo() doesn't order results correctly when node is NULL
vapier at gentoo dot org
sourceware-bugzilla@sourceware.org
Sat Jun 9 05:00:00 GMT 2012
http://sourceware.org/bugzilla/show_bug.cgi?id=14211
Bug #: 14211
Summary: getaddrinfo() doesn't order results correctly when
node is NULL
Product: glibc
Version: 2.15
Status: NEW
Severity: normal
Priority: P2
Component: network
AssignedTo: unassigned@sourceware.org
ReportedBy: vapier@gentoo.org
Classification: Unclassified
Created attachment 6443
--> http://sourceware.org/bugzilla/attachment.cgi?id=6443
gai_bug.c by Hans Nieser
if node==NULL when calling getaddrinfo(), the results are not sorted correctly
in the attached test case, you can see:
$ gcc gai_bug.c && ./a.out 4242
this is an IPv4 result
this is an IPv6 result
it should have returned the IPv6 result first
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the Glibc-bugs
mailing list