[exim-cvs] Correctly close the server side of TLS when forki…

Pàgina inicial
Delete this message
Reply to this message
Autor: Exim Git Commits Mailing List
Data:  
A: exim-cvs
Assumpte: [exim-cvs] Correctly close the server side of TLS when forking for delivery.
Gitweb: http://git.exim.org/exim.git/commitdiff/a400eccf287c55558ae7197c831828cf10b0a35c
Commit:     a400eccf287c55558ae7197c831828cf10b0a35c
Parent:     ff2c417d0b970db22a382cb692d066d8fe3c32ae
Author:     Tony Finch <dot@???>
AuthorDate: Tue Nov 5 12:18:02 2013 +0000
Committer:  Tony Finch <dot@???>
CommitDate: Tue Nov 5 12:18:02 2013 +0000


    Correctly close the server side of TLS when forking for delivery.
---
 src/src/daemon.c |    2 +-
 src/src/exim.c   |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)


diff --git a/src/src/daemon.c b/src/src/daemon.c
index 3467f14..8e61dcf 100644
--- a/src/src/daemon.c
+++ b/src/src/daemon.c
@@ -639,7 +639,7 @@ if (pid == 0)
         the data structures if necessary. */


         #ifdef SUPPORT_TLS
-        tls_close(FALSE, FALSE);
+        tls_close(TRUE, FALSE);
         #endif


         /* Reset SIGHUP and SIGCHLD in the child in both cases. */
diff --git a/src/src/exim.c b/src/src/exim.c
index a715c0b..856e655 100644
--- a/src/src/exim.c
+++ b/src/src/exim.c
@@ -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));