diff --git a/src/add-ons/mail_daemon/outbound_protocols/smtp/smtp.cpp b/src/add-ons/mail_daemon/outbound_protocols/smtp/smtp.cpp index 7f3cce062c..fb8c6f7557 100644 --- a/src/add-ons/mail_daemon/outbound_protocols/smtp/smtp.cpp +++ b/src/add-ons/mail_daemon/outbound_protocols/smtp/smtp.cpp @@ -990,7 +990,7 @@ SMTPProtocol::SendCommand(const char *cmd) D(bug("C:%s\n", cmd)); #ifdef USESSL - if (use_ssl) { + if (use_ssl && ssl) { if (SSL_write(ssl,cmd,::strlen(cmd)) < 0) return B_ERROR; } else