summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/src/transports/smtp.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/src/transports/smtp.c b/src/src/transports/smtp.c
index 5f6108219..606c646fb 100644
--- a/src/src/transports/smtp.c
+++ b/src/src/transports/smtp.c
@@ -2133,8 +2133,7 @@ if (!continue_hostname)
}
set_errno_nohost(sx->addrlist,
errno == ETIMEDOUT ? ERRNO_CONNECTTIMEOUT : errno,
- sx->verify ? string_sprintf("could not connect: %s", msg)
- : NULL,
+ sx->verify ? msg : NULL,
DEFER, FALSE);
sx->send_quit = FALSE;
return DEFER;