diff options
author | Jeremy Harris <jgh146exb@wizmail.org> | 2017-04-06 21:17:29 +0100 |
---|---|---|
committer | Jeremy Harris <jgh146exb@wizmail.org> | 2017-04-06 21:17:29 +0100 |
commit | 170f490458e506bc76038051b3db8229bcdec9c4 (patch) | |
tree | 4dc86a64a46a581b40926ce684185efcfb44f30f | |
parent | d8b8dd159b784810ec7e5d55e3c49319fc63598a (diff) |
Debug: show error for SMTP read response
-rw-r--r-- | src/src/smtp_out.c | 5 | ||||
-rw-r--r-- | src/src/tls-openssl.c | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/src/smtp_out.c b/src/src/smtp_out.c index ba6153ea9..32382c305 100644 --- a/src/src/smtp_out.c +++ b/src/src/smtp_out.c @@ -500,8 +500,9 @@ for (;;) if((rc = ip_recv(sock, inblock->buffer, inblock->buffersize, timeout)) <= 0) { - if (!errno) - DEBUG(D_deliver|D_transport|D_acl) debug_printf_indent(" SMTP(closed)<<\n"); + DEBUG(D_deliver|D_transport|D_acl) + debug_printf_indent(errno ? " SMTP(%s)<<\n" : " SMTP(closed)<<\n", + strerror(errno)); break; } diff --git a/src/src/tls-openssl.c b/src/src/tls-openssl.c index 2d3688263..8018d220b 100644 --- a/src/src/tls-openssl.c +++ b/src/src/tls-openssl.c @@ -641,7 +641,7 @@ if (!(dh = PEM_read_bio_DHparams(bio, NULL, NULL, NULL))) if ((8*DH_size(dh)) > tls_dh_max_bits) { DEBUG(D_tls) - debug_printf("dhparams file %d bits, is > tls_dh_max_bits limit of %d", + debug_printf("dhparams file %d bits, is > tls_dh_max_bits limit of %d\n", 8*DH_size(dh), tls_dh_max_bits); } else |