aboutsummaryrefslogtreecommitdiffstats
path: root/imap.c
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2005-08-28 15:12:39 +0000
committerMatthias Andree <matthias.andree@gmx.de>2005-08-28 15:12:39 +0000
commit4680b0f8c728a69a24e7089b777f03899bab6c9f (patch)
tree15ca79e508d206308b3aaa65a747ddb1d54d32fc /imap.c
parent865694ffd4df6b32eb81722fa6b851fb73a45271 (diff)
downloadfetchmail-4680b0f8c728a69a24e7089b777f03899bab6c9f.tar.gz
fetchmail-4680b0f8c728a69a24e7089b777f03899bab6c9f.tar.bz2
fetchmail-4680b0f8c728a69a24e7089b777f03899bab6c9f.zip
Large protocol independence patch.
svn path=/trunk/; revision=4280
Diffstat (limited to 'imap.c')
-rw-r--r--imap.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/imap.c b/imap.c
index 7440abb0..4d6727b1 100644
--- a/imap.c
+++ b/imap.c
@@ -392,15 +392,18 @@ static int imap_getauth(int sock, struct query *ctl, char *greeting)
if ((ctl->server.authenticate == A_ANY
|| ctl->server.authenticate == A_GSSAPI)
&& strstr(capabilities, "AUTH=GSSAPI"))
- if(ok = do_gssauth(sock, "AUTHENTICATE", "imap", ctl->server.truename, ctl->remotename))
+ {
+ if ((ok = do_gssauth(sock, "AUTHENTICATE", "imap",
+ ctl->server.truename, ctl->remotename)))
{
/* SASL cancellation of authentication */
gen_send(sock, "*");
- if(ctl->server.authenticate != A_ANY)
+ if (ctl->server.authenticate != A_ANY)
return ok;
- }
- else
+ } else {
return ok;
+ }
+ }
#endif /* GSSAPI */
#ifdef KERBEROS_V4