From f14635152fcc38a703f806dcfeb3fc51d3e55365 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sat, 5 Feb 2000 04:10:43 +0000 Subject: LinuxWorld hacks. svn path=/trunk/; revision=2729 --- imap.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'imap.c') diff --git a/imap.c b/imap.c index eb57bf4a..3e39b6fb 100644 --- a/imap.c +++ b/imap.c @@ -894,7 +894,11 @@ int imap_getauth(int sock, struct query *ctl, char *greeting) else expunge_period = 1; - if (preauth) + /* + * If either (a) we saw a PREAUTH token in the capability response, or + * (b) the user specified ssh preauthentication, then we're done. + */ + if (preauth || ctl->server.preauthenticate == A_SSH) return(PS_SUCCESS); #if OPIE_ENABLE -- cgit v1.2.3