This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug network/14967] getaddrinfo(NULL) with AI_PASSIVE returns 0.0.0.0 and :: (in this order)
- From: "psimerda at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Mon, 25 Feb 2013 08:12:45 +0000
- Subject: [Bug network/14967] getaddrinfo(NULL) with AI_PASSIVE returns 0.0.0.0 and :: (in this order)
- Auto-submitted: auto-generated
- References: <bug-14967-131@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=14967
--- Comment #6 from Pavel Åimerda <psimerda at redhat dot com> 2013-02-25 08:12:45 UTC ---
(In reply to comment #4)
> Reset source address to in6addr_any if it is loopback address returned by
> connect to in6addr_any.
This doesn't fix the problem described in this bug report and it is incorrect.
If the family is AF_INET6, the problem doesn't occur at all.
(In reply to comment #5)
> Loopback is just a behavioural return,
getaddrinfo doesn't return loopback addresses in this case (NULL hostname and
AI_PASSIVE) at all. So I'm afraid you are trying to fix a nonexistent problem
instead of the one described in the bug report.
--
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.