summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosé Fonseca <jrfonseca@users.sourceforge.net>2003-08-11 14:30:56 +0000
committerJosé Fonseca <jrfonseca@users.sourceforge.net>2003-08-11 14:30:56 +0000
commitc9aab90ba7b3b2974a51f5b4d7e422fbfca51ff4 (patch)
treed871bea2a7bc724d25e9e609cfc6583cadbcc5a1
parent1e748b30a8d9ee0136d8047ed0c16c3ec9098caa (diff)
Don't fail when libesmtp is compiled without openssl support (tox@centrum.cz).
-rw-r--r--smtp.c2
1 files changed, 1 insertions, 1 deletions
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. */