X-Git-Url: https://git.llucax.com/software/mutt-debian.git/blobdiff_plain/44c01adf506b1087bff724dcb65b92a12b012836..15c23e502a2dcbc20bd179107bb384c99d30dc9d:/smtp.c diff --git a/smtp.c b/smtp.c index 9d096a3..a718006 100644 --- a/smtp.c +++ b/smtp.c @@ -172,7 +172,7 @@ smtp_data (CONNECTION * conn, const char *msgfile) progress_t progress; struct stat st; int r, term = 0; - size_t buflen; + size_t buflen = 0; fp = fopen (msgfile, "r"); if (!fp) @@ -454,12 +454,6 @@ static int smtp_open (CONNECTION* conn) } #ifdef USE_SASL - if (!(conn->account.flags & M_ACCT_PASS) && option (OPTNOCURSES)) - { - mutt_error (_("Interactive SMTP authentication not supported")); - mutt_sleep (1); - return -1; - } return smtp_auth (conn); #else mutt_error (_("SMTP authentication requires SASL")); @@ -603,7 +597,7 @@ static int smtp_auth_sasl (CONNECTION* conn, const char* mechlist) } } strfcpy (buf + len, "\r\n", sizeof (buf) - len); - } while (rc == smtp_ready); + } while (rc == smtp_ready && saslrc != SASL_FAIL); if (smtp_success (rc)) {