Logging: avoid claiming a host was used for an addr, when conn refused under TFO
authorJeremy Harris <jgh146exb@wizmail.org>
Sat, 25 May 2019 14:18:19 +0000 (15:18 +0100)
committerJeremy Harris <jgh146exb@wizmail.org>
Sat, 25 May 2019 23:05:27 +0000 (00:05 +0100)
src/src/transports/smtp.c

index 128ac9a35019f4fe4a41fb8e7a0208f515884d2b..6ce4c9ded56fbda4efaa6830e36d50626a90d4a1 100644 (file)
@@ -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