aboutsummaryrefslogtreecommitdiffstats
path: root/imap.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2003-07-17 00:55:18 +0000
committerEric S. Raymond <esr@thyrsus.com>2003-07-17 00:55:18 +0000
commit8a6226720dbb281ad0b409b06e182621cc08b241 (patch)
treec949205e554a713a1b87d130e0cc34807614b9e3 /imap.c
parent8c73d06cb2761c6d4082d00188a82007b22c8095 (diff)
downloadfetchmail-8a6226720dbb281ad0b409b06e182621cc08b241.tar.gz
fetchmail-8a6226720dbb281ad0b409b06e182621cc08b241.tar.bz2
fetchmail-8a6226720dbb281ad0b409b06e182621cc08b241.zip
First round ofmlong-delayed bug fixes.
svn path=/trunk/; revision=3814
Diffstat (limited to 'imap.c')
-rw-r--r--imap.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/imap.c b/imap.c
index c3ec1395..3e6d80fc 100644
--- a/imap.c
+++ b/imap.c
@@ -416,9 +416,8 @@ static int imap_getauth(int sock, struct query *ctl, char *greeting)
* in a challenge-response.
*/
- if ((ctl->server.authenticate == A_ANY
- || ctl->server.authenticate == A_CRAM_MD5)
- && strstr(capabilities, "AUTH=CRAM-MD5"))
+ if ((ctl->server.authenticate == A_ANY && strstr(capabilities, "AUTH=CRAM-MD5"))
+ || ctl->server.authenticate == A_CRAM_MD5)
{
if ((ok = do_cram_md5 (sock, "AUTHENTICATE", ctl, NULL)))
{