diff options
author | Matthias Andree <matthias.andree@gmx.de> | 2021-08-31 17:02:59 +0200 |
---|---|---|
committer | Matthias Andree <matthias.andree@gmx.de> | 2021-09-01 17:12:02 +0200 |
commit | 34656a01b9b15b1be28ccc2ef699cca171bef261 (patch) | |
tree | b933c6a09c4dbb19272f2bd37ccd7a9678403bf6 | |
parent | 431ccf32e8b6a2e4cf07b49f543bb99e00c7efcf (diff) | |
download | fetchmail-34656a01b9b15b1be28ccc2ef699cca171bef261.tar.gz fetchmail-34656a01b9b15b1be28ccc2ef699cca171bef261.tar.bz2 fetchmail-34656a01b9b15b1be28ccc2ef699cca171bef261.zip |
IMAP: fix error code when LOGIN fails
This recently printed 'we've run out of authentication methods'
instead of the actual authentication failure.
-rw-r--r-- | imap.c | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -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 */ } } |