diff options
author | Damien Miller <djm@mindrot.org> | 2006-08-19 00:32:46 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2006-08-19 00:32:46 +1000 |
commit | 3f8123c804bdabbc95caf9e3495310e584944fb2 (patch) | |
tree | a2451a9b597ab738acc510f3bbee14babc048d2c /session.c | |
parent | 99a648e59291d3adb39eeee4fa1f8a5b2ee2d769 (diff) | |
download | openssh-git-3f8123c804bdabbc95caf9e3495310e584944fb2.tar.gz |
- markus@cvs.openbsd.org 2006/08/18 09:15:20
[auth.h session.c sshd.c]
delay authentication related cleanups until we're authenticated and
all alarms have been cancelled; ok deraadt
Diffstat (limited to 'session.c')
-rw-r--r-- | session.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,4 +1,4 @@ -/* $OpenBSD: session.c,v 1.217 2006/08/04 20:46:05 stevesk Exp $ */ +/* $OpenBSD: session.c,v 1.218 2006/08/18 09:15:20 markus Exp $ */ /* * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland * All rights reserved @@ -2476,7 +2476,7 @@ do_cleanup(Authctxt *authctxt) return; called = 1; - if (authctxt == NULL) + if (authctxt == NULL || !authctxt->authenticated) return; #ifdef KRB5 if (options.kerberos_ticket_cleanup && |