summaryrefslogtreecommitdiff
path: root/sockets.c
diff options
context:
space:
mode:
authorLuke Bratch <luke@bratch.co.uk>2019-09-15 17:33:26 +0100
committerLuke Bratch <luke@bratch.co.uk>2019-09-15 17:33:26 +0100
commit406864e0875058f9533c861eaf65d956902bdb96 (patch)
treeccbfb0a0055240e35155cd62fb8622aaab2e0b20 /sockets.c
parent6ba01e9fc9727246f40009824f9d0ea49ba92485 (diff)
Use global signal(SIGPIPE, SIG_IGN) instead of the send() flag MSG_NOSIGNAL since we can't pass MSG_NOSIGNAL to OpenSSL's SSL_write when using TLS connections.
Diffstat (limited to 'sockets.c')
-rw-r--r--sockets.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sockets.c b/sockets.c
index 5b4c0c2..2ed993e 100644
--- a/sockets.c
+++ b/sockets.c
@@ -226,7 +226,7 @@ int socksend(SSL *fd, char *buf, int bufsize, int tls) {
// Clear errno in case send() errors
errno = 0;
// Cast the supposed SSL *fd to a long int if we're not using TLS
- return send((long int)fd, buf, bufsize, MSG_NOSIGNAL); // MSG_NOSIGNAL so a bad send() can't SIGPIPE blabouncer
+ return send((long int)fd, buf, bufsize, 0);
}
}