Fix getting non-TLS QUIT in FIN segment
[users/heiko/exim.git] / src / src / tls-gnu.c
index b14bca4831e0f43200ae533d4558ba735b2cd436..46547d7327cf03595d73495e24727b6599c684b3 100644 (file)
@@ -3513,6 +3513,8 @@ tls_support * tlsp = state->tlsp;
 
 if (!tlsp || tlsp->active.sock < 0) return;  /* TLS was not active */
 
+tls_write(ct_ctx, NULL, 0, FALSE);     /* flush write buffer */
+
 if (shutdown)
   {
   DEBUG(D_tls) debug_printf("tls_close(): shutting down TLS%s\n",