]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Do not confuse TAP::Parser by mixing up stderr with stdout.
authorAlexandr Nedvedicky <sashan@openssl.org>
Sat, 5 Oct 2024 15:26:24 +0000 (17:26 +0200)
committerAlexandr Nedvedicky <sashan@openssl.org>
Wed, 23 Oct 2024 13:45:57 +0000 (15:45 +0200)
This avoids false psotivie failures on FreeBSD-CI which
suffers most from this issue.

Fixes #23992

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Bernd Edlinger <bernd.edlinger@hotmail.de>
(Merged from https://github.com/openssl/openssl/pull/25613)

util/perl/TLSProxy/Proxy.pm

index 48c55f48220b2f5468ded5531227d80e2525608e..8436861668a8b2937349cc1b40ee4c0e9c1df4b1 100644 (file)
@@ -290,8 +290,14 @@ sub start
     if ($self->debug) {
         print STDERR "Server command: $execcmd\n";
     }
+    my $sin = undef;
+    my $sout = undef;
+    if ("$^O" eq "MSWin32") {
+        $pid = IPC::Open2::open2($sout, $sin, $execcmd) or die "Failed to $execcmd: $!\n";
+    } else {
+        $pid = IPC::Open3::open3($sin, $sout, undef, $execcmd) or die "Failed to $execcmd: $!\n";
+    }
 
-    $pid = IPC::Open2::open2(my $sout, my $sin, $execcmd) or die "Failed to $execcmd: $!\n";
     $self->{serverpid} = $pid;
 
     # Process the output from s_server until we find the ACCEPT line, which