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 libc/12885] New: getaddrinfo with hints.ai_family=AF_INET6 succeeds even if resolving entry with no AAAA record


http://sourceware.org/bugzilla/show_bug.cgi?id=12885

           Summary: getaddrinfo with hints.ai_family=AF_INET6 succeeds
                    even if resolving entry with no AAAA record
           Product: glibc
           Version: 2.14
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
        AssignedTo: drepper.fsp@gmail.com
        ReportedBy: arekm@maven.pl


Created attachment 5792
  --> http://sourceware.org/bugzilla/attachment.cgi?id=5792
test case

glibc 2.14 getaddrinfo succeeds resolving dns entry that has A only record (and
no AAAA) even if hits.ai_family was set to AF_INET6.

glibc 2.14 (invalid behaviour):

$ ./a.out
succeeded - BAD!
Got 209.132.183.81 port 0 family 2
Got 209.132.183.81 port 0 family 2
Got 209.132.183.81 port 0 family 2

glibc 2.13 (correct behaviour):
$ ./a.out
failed - OK!: Name or service not known

Test programs resolves redhat.com which at this moment has no AAAA record.

-- 
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]