From 48519cef815997302bbb0f8c4499ecf4ae9ef446 Mon Sep 17 00:00:00 2001 From: Jeremy Harris Date: Tue, 21 May 2019 21:32:34 +0100 Subject: [PATCH] Logging: fix duplicated transport target info under TFO --- doc/doc-txt/ChangeLog | 2 ++ src/src/transports/smtp.c | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/doc/doc-txt/ChangeLog b/doc/doc-txt/ChangeLog index 9159d3021..9ee8c22df 100644 --- a/doc/doc-txt/ChangeLog +++ b/doc/doc-txt/ChangeLog @@ -117,6 +117,8 @@ JH/23 The build default is now for TLS to be included; the SUPPORT_TLS define the the include-dir and library-file requirements that go with that choice. Non-TLS builds are still supported. +JH/24 Fix duplicated logging of peer name/address, on a transport connection- + reject under TFO. Exim version 4.92 diff --git a/src/src/transports/smtp.c b/src/src/transports/smtp.c index aed80cae9..128ac9a35 100644 --- a/src/src/transports/smtp.c +++ b/src/src/transports/smtp.c @@ -590,6 +590,10 @@ switch(*errno_value) transport_count); return FALSE; + case ECONNREFUSED: /* First-read error on a TFO conn */ + if (verify_mode) *message = US strerror(*errno_value); + return FALSE; /* nonverify, do not set message */ + case ERRNO_SMTPFORMAT: /* Handle malformed SMTP response */ s = string_printing(buffer); while (isspace(*s)) s++; -- 2.25.1