Fix non-TLS build. Detection and fix by Todd Lyons.
[exim.git] / src / src / transports / smtp.c
index b1fedd2d4a9d1ccc9f626addf56a9ad65f19adf3..6ec94d5da45bb0a2fae2369095f6678710d73d14 100644 (file)
@@ -895,7 +895,9 @@ outblock.authenticating = FALSE;
 tls_bits = 0;
 tls_cipher = NULL;
 tls_peerdn = NULL;
+#if defined(SUPPORT_TLS) && !defined(USE_GNUTLS)
 tls_sni = NULL;
+#endif
 
 /* If an authenticated_sender override has been specified for this transport
 instance, expand it. If the expansion is forced to fail, and there was already