From 2d56d63414b2a58f298b72666f1f7d344e846efb Mon Sep 17 00:00:00 2001 From: Jeremy Harris Date: Sat, 25 May 2019 15:18:19 +0100 Subject: Logging: avoid claiming a host was used for an addr, when conn refused under TFO --- src/src/transports/smtp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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 -- cgit v1.2.3