This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/12885] New: getaddrinfo with hints.ai_family=AF_INET6 succeeds even if resolving entry with no AAAA record
- From: "arekm at maven dot pl" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: Tue, 14 Jun 2011 06:41:30 +0000
- Subject: [Bug libc/12885] New: getaddrinfo with hints.ai_family=AF_INET6 succeeds even if resolving entry with no AAAA record
- Auto-submitted: auto-generated
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.