Fix Invalid Argument return code from IP_Factory in connect_to_server().
authorMatthias Kraft <Matthias.Kraft@softwareag.com>
Mon, 4 Feb 2019 08:55:07 +0000 (09:55 +0100)
committerRichard Levitte <levitte@openssl.org>
Mon, 4 Feb 2019 20:52:20 +0000 (21:52 +0100)
Fixes #7732

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/8158)

(cherry picked from commit 66a60003719240399f6596e58c239df0465a4f70)

util/perl/TLSProxy/Proxy.pm

index 8c13520ec68dd7ec366d658f49b3d8ac2e27ed8a..89c8c1d6f26fe3803481e11175ab846702946e5a 100644 (file)
@@ -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 {