From a6ba22b683249334c4c991b87dad2826c6429141 Mon Sep 17 00:00:00 2001 From: Mehdi Abaakouk Date: Sun, 21 Apr 2019 16:50:00 +0200 Subject: [PATCH] imap: fix auth login The auth_login returns an error when it succesfully logins. This was introduced by 04892a48ea76b37f6aa9b369b5bc4f5cc362878c This change fixes that. --- imap/auth_login.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imap/auth_login.c b/imap/auth_login.c index 3b7058f46..8bd523a4f 100644 --- a/imap/auth_login.c +++ b/imap/auth_login.c @@ -70,7 +70,7 @@ enum ImapAuthRes imap_auth_login(struct ImapAccountData *adata, const char *meth mutt_debug(LL_DEBUG2, "Sending LOGIN command for %s\n", adata->conn->account.user); snprintf(buf, sizeof(buf), "LOGIN %s %s", q_user, q_pass); - if (imap_exec(adata, buf, IMAP_CMD_PASS) != IMAP_EXEC_SUCCESS) + if (imap_exec(adata, buf, IMAP_CMD_PASS) == IMAP_EXEC_SUCCESS) { mutt_clear_error(); /* clear "Logging in...". fixes #3524 */ return IMAP_AUTH_SUCCESS; -- 2.40.0