aboutsummaryrefslogtreecommitdiffstats
path: root/pop3.c
diff options
context:
space:
mode:
Diffstat (limited to 'pop3.c')
-rw-r--r--pop3.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/pop3.c b/pop3.c
index 02e38c3f..50673ffe 100644
--- a/pop3.c
+++ b/pop3.c
@@ -354,9 +354,8 @@ static int pop3_getauth(int sock, struct query *ctl, char *greeting)
}
#endif /* OPIE_ENABLE */
- if (has_cram &&
- (ctl->server.authenticate == A_CRAM_MD5 ||
- ctl->server.authenticate == A_ANY))
+ if (ctl->server.authenticate == A_CRAM_MD5 ||
+ (has_cram && ctl->server.authenticate == A_ANY))
{
ok = do_cram_md5(sock, "AUTH", ctl, NULL);
if (ok == PS_SUCCESS || ctl->server.authenticate != A_ANY)