aboutsummaryrefslogtreecommitdiffstats
path: root/imap.c
diff options
context:
space:
mode:
Diffstat (limited to 'imap.c')
-rw-r--r--imap.c8
1 files changed, 1 insertions, 7 deletions
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 */
}
}