X-Git-Url: https://git.llucax.com/software/mutt-debian.git/blobdiff_plain/647ac5444d022537a1f0854dd309494c511dfe07..1f4d55392f3d7e8b03c8c0cee62a38c58650458e:/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)) {