Correctly close the server side of TLS when forking for delivery.
[exim.git] / src / src / exim.c
index a715c0b3981ed709493480652f200bb694e6a5b9..856e655710164f44c5a29b662b56de78b8a2d68c 100644 (file)
@@ -526,7 +526,7 @@ close_unwanted(void)
 if (smtp_input)
   {
   #ifdef SUPPORT_TLS
-  tls_close(FALSE, FALSE);      /* Shut down the TLS library */
+  tls_close(TRUE, FALSE);      /* Shut down the TLS library */
   #endif
   (void)close(fileno(smtp_in));
   (void)close(fileno(smtp_out));