Commit b66ffedc b66ffedcecf7506efc8631dfe1047c0a1d28af80 by Sergey Poznyakoff

Bugfix.

* libproto/mailer/smtp.c (smtp_open): Don't issue second
EHLO if STARTTLS failed.
1 parent 34bbf3cc
......@@ -488,11 +488,8 @@ smtp_open (mu_mailer_t mailer, int flags)
case SMTP_STARTTLS:
case SMTP_STARTTLS_ACK:
if (smtp->capa & CAPA_STARTTLS)
{
smtp_starttls (smtp);
if ((smtp->capa & CAPA_STARTTLS) && smtp_starttls (smtp) == 0)
goto ehlo;
}
case SMTP_AUTH:
case SMTP_AUTH_ACK:
......