aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGilles Chehade <gilles@poolp.org>2019-10-03 09:04:18 +0200
committerGilles Chehade <gilles@poolp.org>2019-10-03 09:04:18 +0200
commit414fa56d45f13b600e0082adbb92825d671a40f1 (patch)
tree3c32b99acdf16d44c4e3ce12cfe103deb9d19a9a
parentsync (diff)
downloadOpenSMTPD-414fa56d45f13b600e0082adbb92825d671a40f1.tar.xz
OpenSMTPD-414fa56d45f13b600e0082adbb92825d671a40f1.zip
sync
-rw-r--r--smtpd/iobuf.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/smtpd/iobuf.c b/smtpd/iobuf.c
index a7224358..f5d8b20a 100644
--- a/smtpd/iobuf.c
+++ b/smtpd/iobuf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: iobuf.c,v 1.11 2019/06/12 17:42:53 eric Exp $ */
+/* $OpenBSD: iobuf.c,v 1.12 2019/10/03 07:03:23 gilles Exp $ */
/*
* Copyright (c) 2012 Eric Faurot <eric@openbsd.org>
*
@@ -420,8 +420,6 @@ iobuf_write_tls(struct iobuf *io, void *tls)
case SSL_ERROR_SYSCALL:
if (ERR_peek_last_error())
return (IOBUF_TLSERROR);
- if (r == 0)
- errno = EPIPE;
return (IOBUF_ERROR);
default:
return (IOBUF_TLSERROR);
@@ -448,8 +446,6 @@ iobuf_read_tls(struct iobuf *io, void *tls)
case SSL_ERROR_SYSCALL:
if (ERR_peek_last_error())
return (IOBUF_TLSERROR);
- if (r == 0)
- errno = EPIPE;
return (IOBUF_ERROR);
default:
return (IOBUF_TLSERROR);