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 #7 from Ruslan N. Marchenko <me at ruff dot mobi> 2013-02-25 18:57:54 UTC ---
You're wrong, this is exactly fix for described problem. Just open the code of
getaddrinfo implementation and you'll see this.
later today I'll attach normal tested patch as I've cloned trunk git.

getaddrinfo retruns 0.0.0.0 and :: in this order because order is based on
comparing :: with ::1 and 0.0.0.0 with 127.0.0.1

-- 
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]