aboutsummaryrefslogtreecommitdiffstats
path: root/imap.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2001-02-07 00:47:42 +0000
committerEric S. Raymond <esr@thyrsus.com>2001-02-07 00:47:42 +0000
commitb8e65546c552c637b53d212a16e39b105a4437d3 (patch)
tree5c19005efc86533d447dda086bf9f2290eb7d690 /imap.c
parent412f06be47f19e1004576e94c2b7e09bf98ddc05 (diff)
downloadfetchmail-b8e65546c552c637b53d212a16e39b105a4437d3.tar.gz
fetchmail-b8e65546c552c637b53d212a16e39b105a4437d3.tar.bz2
fetchmail-b8e65546c552c637b53d212a16e39b105a4437d3.zip
Obvious bug fixes for 5.6.3.
svn path=/trunk/; revision=3022
Diffstat (limited to 'imap.c')
-rw-r--r--imap.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/imap.c b/imap.c
index 39868ad5..57145194 100644
--- a/imap.c
+++ b/imap.c
@@ -898,16 +898,6 @@ int imap_getauth(int sock, struct query *ctl, char *greeting)
expunge_period = 1;
/*
- * If either (a) we saw a PREAUTH token in the greeting, or
- * (b) the user specified ssh preauthentication, then we're done.
- */
- if (preauth || ctl->server.preauthenticate == A_SSH)
- {
- preauth = FALSE; /* reset for the next session */
- return(PS_SUCCESS);
- }
-
- /*
* Handle idling. We depend on coming through here on startup
* and after each timeout (including timeouts during idles).
*/
@@ -918,6 +908,16 @@ int imap_getauth(int sock, struct query *ctl, char *greeting)
report(stdout, _("will idle after poll\n"));
}
+ /*
+ * If either (a) we saw a PREAUTH token in the greeting, or
+ * (b) the user specified ssh preauthentication, then we're done.
+ */
+ if (preauth || ctl->server.preauthenticate == A_SSH)
+ {
+ preauth = FALSE; /* reset for the next session */
+ return(PS_SUCCESS);
+ }
+
#if OPIE_ENABLE
if ((ctl->server.protocol == P_IMAP) && strstr(capabilities, "AUTH=X-OTP"))
{