From: Jeremy Harris Date: Mon, 3 Jun 2024 15:20:20 +0000 (+0100) Subject: Unbreak no-TLS build X-Git-Tag: exim-4.98-RC0~4 X-Git-Url: https://git.exim.org/exim.git/commitdiff_plain/6fa5cd352fc9c1e86ec56ac4f2b96804b6472a5f?ds=inline Unbreak no-TLS build Broken-by: 4243a209fd94 --- diff --git a/src/src/smtp_in.c b/src/src/smtp_in.c index c941d115c..5110ed3d6 100644 --- a/src/src/smtp_in.c +++ b/src/src/smtp_in.c @@ -2067,9 +2067,12 @@ log_connect_tls_drop(const uschar * what, const uschar * log_msg) { if (log_reject_target) { +#ifdef DISABLE_TLS + uschar * tls = NULL; +#else gstring * g = s_tlslog(NULL); uschar * tls = string_from_gstring(g); - +#endif log_write(L_connection_reject, log_reject_target, "%s%s%s dropped by %s%s%s", LOGGING(dnssec) && sender_host_dnssec ? US" DS" : US"", diff --git a/src/src/transports/smtp.c b/src/src/transports/smtp.c index 0338d6301..8645c150d 100644 --- a/src/src/transports/smtp.c +++ b/src/src/transports/smtp.c @@ -1091,7 +1091,7 @@ if (pending_BANNER) } /*XXX EXPERIMENTAL_ESMTP_LIMITS ? */ -# ifndef DISABLE_TLS_RESUME +# if !defined(DISABLE_TLS) && !defined(DISABLE_TLS_RESUME) GET_OPTION("host_name_extract"); s = ((smtp_transport_options_block *)sx->conn_args.ob)->host_name_extract; if (!s) s = HNE_DEFAULT; @@ -2635,7 +2635,7 @@ goto SEND_QUIT; } } #endif -#ifndef DISABLE_TLS_RESUME +#if !defined(DISABLE_TLS) && !defined(DISABLE_TLS_RESUME) GET_OPTION("host_name_extract"); if (!(s = ob->host_name_extract)) s = HNE_DEFAULT; ehlo_response_lbserver(sx, s);