TLS: rework client-side use with an explicit context rather than a global
[exim.git] / src / src / exim.c
index 58c2dc9af95ca08f2b3c0275a4e29007affede49..2b4ecbc66516ad4cafaf83ce119539977723b4b9 100644 (file)
@@ -550,9 +550,9 @@ close_unwanted(void)
 {
 if (smtp_input)
   {
-  #ifdef SUPPORT_TLS
-  tls_close(TRUE, TLS_NO_SHUTDOWN);      /* Shut down the TLS library */
-  #endif
+#ifdef SUPPORT_TLS
+  tls_close(NULL, TLS_NO_SHUTDOWN);      /* Shut down the TLS library */
+#endif
   (void)close(fileno(smtp_in));
   (void)close(fileno(smtp_out));
   smtp_in = NULL;