diff options
author | Jeremy Harris <jgh146exb@wizmail.org> | 2018-10-27 19:28:03 +0100 |
---|---|---|
committer | Jeremy Harris <jgh146exb@wizmail.org> | 2018-10-27 19:28:03 +0100 |
commit | 58c09a7fadb47400d4e90a6bf11d86dcc298eea9 (patch) | |
tree | 78acb7069d0e9aac8b132f062432be935022972e /src | |
parent | e99725fdd20257ae71b8159486fce596309729f4 (diff) |
Avoid trying to talk TLS over a known-closed channel
Diffstat (limited to 'src')
-rw-r--r-- | src/src/smtp_in.c | 3 |
1 files changed, 3 insertions, 0 deletions
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 |