From 34656a01b9b15b1be28ccc2ef699cca171bef261 Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Tue, 31 Aug 2021 17:02:59 +0200 Subject: IMAP: fix error code when LOGIN fails This recently printed 'we've run out of authentication methods' instead of the actual authentication failure. --- imap.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'imap.c') diff --git a/imap.c b/imap.c index a14139b6..f57c3e0f 100644 --- a/imap.c +++ b/imap.c @@ -732,13 +732,7 @@ static int imap_getauth(int sock, struct query *ctl, char *greeting) memset(password, 0x55, strlen(password)); xfree(password); xfree(remotename); - if (ok) - { - if(ctl->server.authenticate != A_ANY) - return ok; - } - else - return(ok); + return ok; /* this assumes that password is the last authentication method to try */ } } -- cgit v1.2.3