]> granicus.if.org Git - libevent/commit
Fix getaddrinfo with protocol unset on Solaris 9. Found by Dagobert Michelsen
authorNick Mathewson <nickm@torproject.org>
Wed, 21 Apr 2010 15:57:55 +0000 (11:57 -0400)
committerNick Mathewson <nickm@torproject.org>
Sat, 8 May 2010 23:34:09 +0000 (19:34 -0400)
commit2cf2a286e42356601514d754acbcefc3cf0b23ad
tree4a0a51c0850cfb7bf799495d0194dac8780423d9
parentc44de06c766906a7d90f5dcb99877caafad241af
Fix getaddrinfo with protocol unset on Solaris 9. Found by Dagobert Michelsen

Apparently when you call Solaris 9's getaddrinfo(), it likes to leave
ai_protocol unset in the result. This is no way to behave, if I'm
reading RFC3493 right.

This patch makes us check for a getaddrinfo() that's broken in this way,
and work around it by trying to infer socktype and protocol from one
another.

Partial bugfix for 2987542
evutil.c