summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJeremy Harris <jgh146exb@wizmail.org>2019-05-25 15:18:19 +0100
committerJeremy Harris <jgh146exb@wizmail.org>2019-05-26 00:05:27 +0100
commit2d56d63414b2a58f298b72666f1f7d344e846efb (patch)
treed21d3a8489a1c1bbb4db99fced170db398f5b9ae /src
parent48519cef815997302bbb0f8c4499ecf4ae9ef446 (diff)
Logging: avoid claiming a host was used for an addr, when conn refused under TFO
Diffstat (limited to 'src')
-rw-r--r--src/src/transports/smtp.c3
1 files changed, 2 insertions, 1 deletions
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