From f10e3ea3ef65ae1a07a0652d3263b489fd7d66bb Mon Sep 17 00:00:00 2001 From: Jeremy Harris Date: Fri, 3 Feb 2017 14:00:40 +0000 Subject: [PATCH] Fix no-SSL build --- src/src/verify.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; -- 2.25.1