From 3a62c62ccdf1c38d226985df9e5dc977fee3dadc Mon Sep 17 00:00:00 2001 From: Damien Miller Date: Tue, 28 Feb 2006 01:10:22 +0000 Subject: fix logout recording when privilege separation is disabled, analysis and patch from vinschen at redhat.com; tested by dtucker@ ok deraadt@ --- usr.bin/ssh/session.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.bin/ssh/session.c') 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 #include @@ -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; } /* -- cgit v1.2.3