From: Jeremy Harris Date: Fri, 3 Feb 2017 14:00:40 +0000 (+0000) Subject: Fix no-SSL build X-Git-Tag: exim-4_89_RC3~12 X-Git-Url: https://vcs.fsf.org/?p=exim.git;a=commitdiff_plain;h=f10e3ea3ef65ae1a07a0652d3263b489fd7d66bb Fix no-SSL build --- diff --git a/src/src/verify.c b/src/src/verify.c index 96c2b66cc..7b136d4cc 100644 --- a/src/src/verify.c +++ b/src/src/verify.c @@ -682,7 +682,9 @@ tls_retry_connection: SMTP command to send. If we tried TLS but it failed, try again without if permitted */ - if ( (yield = smtp_setup_conn(&sx, FALSE)) == DEFER + yield = smtp_setup_conn(&sx, FALSE); +#ifdef SUPPORT_TLS + if ( yield == DEFER && addr->basic_errno == ERRNO_TLSFAILURE && ob->tls_tempfail_tryclear && verify_check_given_host(&ob->hosts_require_tls, host) != OK @@ -694,6 +696,7 @@ tls_retry_connection: addr->transport_return = PENDING_DEFER; yield = smtp_setup_conn(&sx, TRUE); } +#endif if (yield != OK) { errno = addr->basic_errno;