From: Matthias Kraft Date: Mon, 4 Feb 2019 08:55:07 +0000 (+0100) Subject: Fix Invalid Argument return code from IP_Factory in connect_to_server(). X-Git-Tag: openssl-3.0.0-alpha1~2580 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=66a60003719240399f6596e58c239df0465a4f70;p=oweals%2Fopenssl.git Fix Invalid Argument return code from IP_Factory in connect_to_server(). Fixes #7732 Reviewed-by: Matt Caswell Reviewed-by: Richard Levitte (Merged from https://github.com/openssl/openssl/pull/8158) --- diff --git a/util/perl/TLSProxy/Proxy.pm b/util/perl/TLSProxy/Proxy.pm index 38213856f5..a583e636cd 100644 --- a/util/perl/TLSProxy/Proxy.pm +++ b/util/perl/TLSProxy/Proxy.pm @@ -44,7 +44,7 @@ BEGIN $s->close(); }; if ($@ eq "") { - $IP_factory = sub { IO::Socket::INET6->new(@_); }; + $IP_factory = sub { IO::Socket::INET6->new(Domain => AF_INET6, @_); }; $have_IPv6 = 1; } else { eval {