aboutsummaryrefslogtreecommitdiffstats
path: root/pop3.c
diff options
context:
space:
mode:
Diffstat (limited to 'pop3.c')
-rw-r--r--pop3.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/pop3.c b/pop3.c
index 741a5319..f5e727c1 100644
--- a/pop3.c
+++ b/pop3.c
@@ -565,7 +565,8 @@ static int pop3_getauth(int sock, struct query *ctl, char *greeting)
#if defined(GSSAPI)
if (has_gssapi &&
(ctl->server.authenticate == A_GSSAPI ||
- ctl->server.authenticate == A_ANY))
+ (ctl->server.authenticate == A_ANY
+ && check_gss_creds("pop", ctl->server.truename) == PS_SUCCESS)))
{
ok = do_gssauth(sock,"AUTH","pop",ctl->server.truename,ctl->remotename);
if (ok == PS_SUCCESS || ctl->server.authenticate != A_ANY)