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/4647] New: deleting the last ipv6 nameserver from resolv.conf causes resolving to cease working


Having one (or more) ipv6 nameservers in resolv.conf and then removing it and
calling res_init to reread it causes resolver to stop working, because an IPv4
socket is created and and connected to an IPv6 sockaddr.

I'm attaching a reproducer and a proposed fix (I did not test it but I believe
it provides a pretty good idea of why is that happening).

-- 
           Summary: deleting the last ipv6 nameserver from resolv.conf
                    causes resolving to cease working
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
        AssignedTo: drepper at redhat dot com
        ReportedBy: tjanouse at redhat dot com
                CC: glibc-bugs at sources dot redhat dot com


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

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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