summaryrefslogtreecommitdiffstats
path: root/session.c
diff options
context:
space:
mode:
authorTim Rice <tim@multitalents.net>2006-02-08 00:17:44 +0100
committerTim Rice <tim@multitalents.net>2006-02-08 00:17:44 +0100
commit83d2f5fedfac201f24205c41691a03f23bd35df0 (patch)
tree3535ceec1a3aa68585d34d7be9d0c181a71d5836 /session.c
parent - (tim) [configure.ac] Remove unnecessary tests for net/if.h and (diff)
downloadopenssh-83d2f5fedfac201f24205c41691a03f23bd35df0.tar.xz
openssh-83d2f5fedfac201f24205c41691a03f23bd35df0.zip
- (tim) [session.c] Logout records were not updated on systems with
post auth privsep disabled due to bug 1086 changes. Analysis and patch by vinschen at redhat.com. OK tim@, dtucker@.
Diffstat (limited to 'session.c')
-rw-r--r--session.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/session.c b/session.c
index 2bf904404..0cbd5fbb2 100644
--- a/session.c
+++ b/session.c
@@ -2176,7 +2176,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
@@ -2238,6 +2237,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;
}
/*