summaryrefslogtreecommitdiff
path: root/usr.bin/ssh/session.c
diff options
context:
space:
mode:
authorDamien Miller <djm@cvs.openbsd.org>2006-02-28 01:10:22 +0000
committerDamien Miller <djm@cvs.openbsd.org>2006-02-28 01:10:22 +0000
commit3a62c62ccdf1c38d226985df9e5dc977fee3dadc (patch)
tree8454f7db9eaf16b9ba7e8bea17253fa4feb75ce3 /usr.bin/ssh/session.c
parente37909dd75a644d848454fa35b053d8448bde85e (diff)
fix logout recording when privilege separation is disabled, analysis and
patch from vinschen at redhat.com; tested by dtucker@ ok deraadt@
Diffstat (limited to 'usr.bin/ssh/session.c')
-rw-r--r--usr.bin/ssh/session.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/session.c b/usr.bin/ssh/session.c
index 0dc8ede86b7..94400279d64 100644
--- a/usr.bin/ssh/session.c
+++ b/usr.bin/ssh/session.c
@@ -33,7 +33,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: session.c,v 1.196 2006/02/20 17:19:54 stevesk Exp $");
+RCSID("$OpenBSD: session.c,v 1.197 2006/02/28 01:10:21 djm Exp $");
#include <sys/types.h>
#include <sys/wait.h>
@@ -1816,7 +1816,6 @@ session_exit_message(Session *s, int status)
/* disconnect channel */
debug("session_exit_message: release channel %d", s->chanid);
- s->pid = 0;
/*
* Adjust cleanup callback attachment to send close messages when
@@ -1878,6 +1877,7 @@ session_close_by_pid(pid_t pid, int status)
session_exit_message(s, status);
if (s->ttyfd != -1)
session_pty_cleanup(s);
+ s->pid = 0;
}
/*