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: "me at ruff dot mobi" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Sun, 24 Feb 2013 23:21:00 +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 #5 from Ruslan N. Marchenko <me at ruff dot mobi> 2013-02-24 23:21:00 UTC ---
In proposed draft there is a typo
&& IN6_IS_ADDR_LOOPBACK(&results[i].source_addr))
should read as
&& IN6_IS_ADDR_LOOPBACK(&results[i].source_addr.sin6_addr))
so - if it is V6 family, and original address was any, but returned address is
loopback - reset it to any. Loopback is just a behavioural return, it's not
proper address, a result of connect() to unspecified address.
--
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.