diff options
author | Arne Schwabe <arne@rfc2549.org> | 2014-04-07 22:12:05 +0200 |
---|---|---|
committer | Gert Doering <gert@greenie.muc.de> | 2014-04-10 16:27:09 +0200 |
commit | 891636cb397e02d6e283da7e1926a5ca6cd11b02 (patch) | |
tree | 84aadd4ec2701167a973a68270729552d402d599 /sample/sample-plugins/simple/winbuild | |
parent | 60b40a58c4caaeb5c5aa8d402020414d3ba05050 (diff) | |
download | openvpn-891636cb397e02d6e283da7e1926a5ca6cd11b02.tar.gz openvpn-891636cb397e02d6e283da7e1926a5ca6cd11b02.tar.xz openvpn-891636cb397e02d6e283da7e1926a5ca6cd11b02.zip |
Work around Solaris getaddrinfo() returing ai_protocol=0
Create_socket() and sub-functions assume that the ai_protocol value
returned by getaddrinfo() is IPPROTO_UDP or IPPROTO_TCP. On Solaris,
it is "0", because Solaris's socket() call will then "select the right
protocol" - but it breaks our code. So remove ASSERT()s on ai_protocol,
and also accept properly set ai_socktype (SOCK_DGRAM/SOCK_STREAM) values
if ai_protocol is not set.
Signed-off-by: Gert Doering <gert@greenie.muc.de>
Signed-off-by: Arne Schwabe <arne@rfc2549.org>
Acked-by: Gert Doering <gert@greenie.muc.de>
Acked-by: Arne Schwabe <arne@rfc2549.org>
Message-Id: <20140407201711.GN16637@greenie.muc.de>
URL: http://article.gmane.org/gmane.network.openvpn.devel/8428
Diffstat (limited to 'sample/sample-plugins/simple/winbuild')
0 files changed, 0 insertions, 0 deletions