From c9aab90ba7b3b2974a51f5b4d7e422fbfca51ff4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Fonseca?= Date: Mon, 11 Aug 2003 14:30:56 +0000 Subject: Don't fail when libesmtp is compiled without openssl support (tox@centrum.cz). --- smtp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smtp.c b/smtp.c index 1ad0832..b358f46 100644 --- a/smtp.c +++ b/smtp.c @@ -359,7 +359,7 @@ void smtp_send(message_t *msg) goto failure; /* Set the SMTP Starttls extension. */ - if(!smtp_starttls_enable (session, identity->starttls)) + if(identity->starttls && !smtp_starttls_enable (session, identity->starttls)) goto failure; /* Do what's needed at application level to use authentication. */ -- cgit v1.2.3