Whoops, forgot to bracket the calls for TLS shutdown with a #ifdef TLS_SUPPORT
authorKen Hornstein <kenh@cmf.nrl.navy.mil>
Fri, 3 Dec 2010 02:04:30 +0000 (21:04 -0500)
committerKen Hornstein <kenh@cmf.nrl.navy.mil>
Fri, 3 Dec 2010 02:04:30 +0000 (21:04 -0500)
mts/smtp/smtp.c

index e6bca9a..20fdce5 100644 (file)
@@ -787,10 +787,12 @@ sm_end (int type)
            break;
     }
 
            break;
     }
 
+#ifdef TLS_SUPPORT
     if (tls_active) {
        SSL_shutdown(ssl);
        SSL_free(ssl);
     }
     if (tls_active) {
        SSL_shutdown(ssl);
        SSL_free(ssl);
     }
+#endif /* TLS_SUPPORT */
 
     if (sm_rfp != NULL) {
        alarm (SM_CLOS);
 
     if (sm_rfp != NULL) {
        alarm (SM_CLOS);