OpenSSL: Fix memory leak during multi-message connections using STARTTLS
[exim.git] / src / src / exim.c
index 870b33949b357fbcde9e3400ecd4246a78bf3107..9fceaf524d73ae2da75ca1f1fd5ebe97d0066c28 100644 (file)
@@ -543,7 +543,7 @@ close_unwanted(void)
 if (smtp_input)
   {
   #ifdef SUPPORT_TLS
-  tls_close(TRUE, FALSE);      /* Shut down the TLS library */
+  tls_close(TRUE, TLS_NO_SHUTDOWN);      /* Shut down the TLS library */
   #endif
   (void)close(fileno(smtp_in));
   (void)close(fileno(smtp_out));