diff options
author | Jeremy Harris <jgh146exb@wizmail.org> | 2018-06-24 20:30:23 +0100 |
---|---|---|
committer | Jeremy Harris <jgh146exb@wizmail.org> | 2018-06-24 20:30:23 +0100 |
commit | c645dd29e7f9fcb7e3d2fd9f20aa47084ba0221e (patch) | |
tree | 1631fe555182d8961a3f5ddbe6cf8c883b1ba85f /src | |
parent | 74f1a42304ce056cf979d22fb970faae161e3ab2 (diff) |
Fix mutiple message send under TLS
Broken-by: 74f1a42304
Diffstat (limited to 'src')
-rw-r--r-- | src/src/transports/smtp.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/src/transports/smtp.c b/src/src/transports/smtp.c index 1f0256f3d..1631817d9 100644 --- a/src/src/transports/smtp.c +++ b/src/src/transports/smtp.c @@ -2717,6 +2717,7 @@ for (fd_bits = 3; fd_bits; ) { fd_bits = 0; tls_close(ct_ctx, TLS_SHUTDOWN_NOWAIT); + ct_ctx = NULL; } else { @@ -3541,6 +3542,7 @@ if (sx.completed_addr && sx.ok && sx.send_quit) the socket on. */ tls_close(sx.cctx.tls_ctx, TLS_SHUTDOWN_WAIT); + sx.cctx.tls_ctx = NULL; smtp_peer_options = smtp_peer_options_wrap; sx.ok = !sx.smtps && smtp_write_command(&sx.outblock, SCMD_FLUSH, @@ -3654,6 +3656,7 @@ END_OFF: #ifdef SUPPORT_TLS tls_close(sx.cctx.tls_ctx, TLS_SHUTDOWN_NOWAIT); +sx.cctx.tls_ctx = NULL; #endif /* Close the socket, and return the appropriate value, first setting |