From: Jeremy Harris Date: Sat, 25 May 2019 14:18:19 +0000 (+0100) Subject: Logging: avoid claiming a host was used for an addr, when conn refused under TFO X-Git-Tag: exim-4.93-RC0~176 X-Git-Url: https://git.exim.org/exim.git/commitdiff_plain/2d56d63414b2a58f298b72666f1f7d344e846efb?ds=sidebyside Logging: avoid claiming a host was used for an addr, when conn refused under TFO --- diff --git a/src/src/transports/smtp.c b/src/src/transports/smtp.c index 128ac9a35..6ce4c9ded 100644 --- a/src/src/transports/smtp.c +++ b/src/src/transports/smtp.c @@ -2901,7 +2901,8 @@ FAILED: || errno == ERRNO_UTF8_FWD #endif ? FAIL : DEFER, - pass_message, sx->conn_args.host + pass_message, + errno == ECONNREFUSED ? NULL : sx->conn_args.host #ifdef EXPERIMENTAL_DSN_INFO , sx->smtp_greeting, sx->helo_response #endif