Whoops, forgot to bracket the calls for TLS shutdown with a #ifdef TLS_SUPPORT
[mmh] / mts / smtp / smtp.c
index e6bca9a..20fdce5 100644 (file)
@@ -787,10 +787,12 @@ sm_end (int type)
            break;
     }
 
+#ifdef TLS_SUPPORT
     if (tls_active) {
        SSL_shutdown(ssl);
        SSL_free(ssl);
     }
+#endif /* TLS_SUPPORT */
 
     if (sm_rfp != NULL) {
        alarm (SM_CLOS);