From 58c09a7fadb47400d4e90a6bf11d86dcc298eea9 Mon Sep 17 00:00:00 2001 From: Jeremy Harris Date: Sat, 27 Oct 2018 19:28:03 +0100 Subject: Avoid trying to talk TLS over a known-closed channel --- src/src/smtp_in.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/src/smtp_in.c b/src/src/smtp_in.c index 8c1d3111c..2a83392ac 100644 --- a/src/src/smtp_in.c +++ b/src/src/smtp_in.c @@ -3465,6 +3465,9 @@ if (acl_smtp_notquit && reason) log_msg); } +/* If the connection was dropped, we certainly are no longer talking TLS */ +tls_in.active.sock = -1; + /* Write an SMTP response if we are expected to give one. As the default responses are all internal, they should always fit in the buffer, but code a warning, just in case. Note that string_vformat() still leaves a complete -- cgit v1.2.3