diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2001-02-07 00:47:42 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2001-02-07 00:47:42 +0000 |
commit | b8e65546c552c637b53d212a16e39b105a4437d3 (patch) | |
tree | 5c19005efc86533d447dda086bf9f2290eb7d690 /imap.c | |
parent | 412f06be47f19e1004576e94c2b7e09bf98ddc05 (diff) | |
download | fetchmail-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.c | 20 |
1 files changed, 10 insertions, 10 deletions
@@ -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")) { |