This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug network/14211] New: getaddrinfo() doesn't order results correctly when node is NULL
- From: "vapier at gentoo dot org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: Sat, 09 Jun 2012 05:00:27 +0000
- Subject: [Bug network/14211] New: getaddrinfo() doesn't order results correctly when node is NULL
- Auto-submitted: auto-generated
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.