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 network/14967] getaddrinfo(NULL) with AI_PASSIVE returns 0.0.0.0 and :: (in this order)


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.


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