This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug network/14211] New: getaddrinfo() doesn't order results correctly when node is NULL


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]