diff options
Diffstat (limited to 'session.c')
-rw-r--r-- | session.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 && |