Avoid trying to talk TLS over a known-closed channel
[exim.git] / src / src / smtp_in.c
index 8c1d3111cf38ae6c9e335747dab2273fc6eab1bd..2a83392ac249f2aaec65ed78ed4ac1f94a7202d2 100644 (file)
@@ -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