summaryrefslogtreecommitdiff
path: root/crypto/openssh/session.c
diff options
context:
space:
mode:
authorSimon L. B. Nielsen <simon@FreeBSD.org>2006-09-30 19:58:07 +0000
committerSimon L. B. Nielsen <simon@FreeBSD.org>2006-09-30 19:58:07 +0000
commit8723db212b448269de3734dd4055242155f0129b (patch)
tree64537a744386dc47552464a0d175c59e5a2a7edb /crypto/openssh/session.c
parenteae9de64eb36b90772270b9c05d68d06bdb2efbe (diff)
Notes
Diffstat (limited to 'crypto/openssh/session.c')
-rw-r--r--crypto/openssh/session.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/openssh/session.c b/crypto/openssh/session.c
index 3f9049f3593e..bcf5b6df4e97 100644
--- a/crypto/openssh/session.c
+++ b/crypto/openssh/session.c
@@ -2266,7 +2266,7 @@ do_cleanup(Authctxt *authctxt)
return;
called = 1;
- if (authctxt == NULL)
+ if (authctxt == NULL || !authctxt->authenticated)
return;
#ifdef KRB5
if (options.kerberos_ticket_cleanup &&