aboutsummaryrefslogtreecommitdiffstats
path: root/imap.c
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2004-06-19 01:51:38 +0000
committerMatthias Andree <matthias.andree@gmx.de>2004-06-19 01:51:38 +0000
commit8da5725d04fae61458a4944de12207256e8dbc2a (patch)
tree74e183d66ba39d46dd3bfd1ebab69552e077a027 /imap.c
parent67d5e1e4ca79d86c8beedc8709efb27f83295443 (diff)
downloadfetchmail-8da5725d04fae61458a4944de12207256e8dbc2a.tar.gz
fetchmail-8da5725d04fae61458a4944de12207256e8dbc2a.tar.bz2
fetchmail-8da5725d04fae61458a4944de12207256e8dbc2a.zip
Fix various warnings.
svn path=/trunk/; revision=3904
Diffstat (limited to 'imap.c')
-rw-r--r--imap.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/imap.c b/imap.c
index f1b516ee..af930b48 100644
--- a/imap.c
+++ b/imap.c
@@ -443,16 +443,17 @@ static int imap_getauth(int sock, struct query *ctl, char *greeting)
#ifdef OPIE_ENABLE
if ((ctl->server.authenticate == A_ANY
|| ctl->server.authenticate == A_OTP)
- && strstr(capabilities, "AUTH=X-OTP"))
+ && strstr(capabilities, "AUTH=X-OTP")) {
if ((ok = do_otp(sock, "AUTHENTICATE", ctl)))
{
/* SASL cancellation of authentication */
gen_send(sock, "*");
if(ctl->server.authenticate != A_ANY)
return ok;
- }
- else
+ } else {
return ok;
+ }
+ }
#else
if (ctl->server.authenticate == A_OTP)
{