From: Jeremy Harris Date: Thu, 6 Apr 2017 20:17:29 +0000 (+0100) Subject: Debug: show error for SMTP read response X-Git-Tag: exim-4_90_RC1~200 X-Git-Url: https://vcs.fsf.org/?p=exim.git;a=commitdiff_plain;h=170f490458e506bc76038051b3db8229bcdec9c4 Debug: show error for SMTP read response --- 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