summaryrefslogtreecommitdiff
path: root/session.c
diff options
context:
space:
mode:
Diffstat (limited to 'session.c')
-rw-r--r--session.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/session.c b/session.c
index daad03929..3420db57d 100644
--- a/session.c
+++ b/session.c
@@ -2440,7 +2440,7 @@ do_cleanup(Authctxt *authctxt)
2440 return; 2440 return;
2441 called = 1; 2441 called = 1;
2442 2442
2443 if (authctxt == NULL) 2443 if (authctxt == NULL || !authctxt->authenticated)
2444 return; 2444 return;
2445#ifdef KRB5 2445#ifdef KRB5
2446 if (options.kerberos_ticket_cleanup && 2446 if (options.kerberos_ticket_cleanup &&