summaryrefslogtreecommitdiff
path: root/session.c
diff options
context:
space:
mode:
Diffstat (limited to 'session.c')
-rw-r--r--session.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/session.c b/session.c
index 1eb66f440..057298c86 100644
--- a/session.c
+++ b/session.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: session.c,v 1.217 2006/08/04 20:46:05 stevesk Exp $ */ 1/* $OpenBSD: session.c,v 1.218 2006/08/18 09:15:20 markus Exp $ */
2/* 2/*
3 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 3 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
4 * All rights reserved 4 * All rights reserved
@@ -2476,7 +2476,7 @@ do_cleanup(Authctxt *authctxt)
2476 return; 2476 return;
2477 called = 1; 2477 called = 1;
2478 2478
2479 if (authctxt == NULL) 2479 if (authctxt == NULL || !authctxt->authenticated)
2480 return; 2480 return;
2481#ifdef KRB5 2481#ifdef KRB5
2482 if (options.kerberos_ticket_cleanup && 2482 if (options.kerberos_ticket_cleanup &&