From: Bernd Edlinger Date: Sat, 13 Jan 2018 09:24:45 +0000 (+0100) Subject: Catch SIGPIPE in TLSProxy::Proxy::clientstart X-Git-Tag: OpenSSL_1_1_1-pre1~198 X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff_plain;h=438e57a43f096d37bf316869b98780e24596a5e8 Catch SIGPIPE in TLSProxy::Proxy::clientstart Reviewed-by: Richard Levitte (Merged from https://github.com/openssl/openssl/pull/5071) --- diff --git a/util/perl/TLSProxy/Proxy.pm b/util/perl/TLSProxy/Proxy.pm index 99b0dedd5b..cc21bd6ac9 100644 --- a/util/perl/TLSProxy/Proxy.pm +++ b/util/perl/TLSProxy/Proxy.pm @@ -294,6 +294,7 @@ sub clientstart #Wait for either the server socket or the client socket to become readable my @ready; my $ctr = 0; + local $SIG{PIPE} = "IGNORE"; while( (!(TLSProxy::Message->end) || (defined $self->sessionfile() && (-s $self->sessionfile()) == 0))