This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/12714] New: getaddrinfo(AF_INET6) does not return scope_id info provided by NSS modules
- From: "mbabinski at google dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: Thu, 28 Apr 2011 19:57:50 +0000
- Subject: [Bug libc/12714] New: getaddrinfo(AF_INET6) does not return scope_id info provided by NSS modules
- Auto-submitted: auto-generated
http://sourceware.org/bugzilla/show_bug.cgi?id=12714
Summary: getaddrinfo(AF_INET6) does not return scope_id info
provided by NSS modules
Product: glibc
Version: 2.13
Status: NEW
Severity: normal
Priority: P2
Component: libc
AssignedTo: drepper.fsp@gmail.com
ReportedBy: mbabinski@google.com
It looks like this is a problem caused by overeager optimization: gaih_inet()
falls back to using the faster _nss_*_gethostbyname2_r when the address family
is specified explicitly. This function is incapable of returning scope_id info,
so _gethostbyname4_r should be used whenever the NSS module implements it, and
there is a possibility that an AF_INET6 address needs to be returned.
Patch attached.
--
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.