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 #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.


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