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
commit150f381d548b0eb6e043ece264908c702fbcba75 (patch)
tree564213cc1a73b8d7cdafb4452ac610b3da2eac9d /crypto/openssh/session.c
parent69563d3a52a724e304ed378c595c4c76e21f976a (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 &&