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/12714] New: getaddrinfo(AF_INET6) does not return scope_id info provided by NSS modules


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.


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