summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--sshd.c5
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 43b0c5f4a..7edbfbcbd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -85,6 +85,10 @@
85 - djm@cvs.openbsd.org 2014/04/01 05:32:57 85 - djm@cvs.openbsd.org 2014/04/01 05:32:57
86 [packet.c] 86 [packet.c]
87 demote a debug3 to PACKET_DEBUG; ok markus@ 87 demote a debug3 to PACKET_DEBUG; ok markus@
88 - djm@cvs.openbsd.org 2014/04/12 04:55:53
89 [sshd.c]
90 avoid crash at exit: check that pmonitor!=NULL before dereferencing;
91 bz#2225, patch from kavi AT juniper.net
88 92
8920140401 9320140401
90 - (djm) On platforms that support it, use prctl() to prevent sftp-server 94 - (djm) On platforms that support it, use prctl() to prevent sftp-server
diff --git a/sshd.c b/sshd.c
index 0ade55771..f0fc07896 100644
--- a/sshd.c
+++ b/sshd.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: sshd.c,v 1.421 2014/03/26 19:58:37 tedu Exp $ */ 1/* $OpenBSD: sshd.c,v 1.423 2014/04/12 04:55:53 djm Exp $ */
2/* 2/*
3 * Author: Tatu Ylonen <ylo@cs.hut.fi> 3 * Author: Tatu Ylonen <ylo@cs.hut.fi>
4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -2484,7 +2484,8 @@ cleanup_exit(int i)
2484{ 2484{
2485 if (the_authctxt) { 2485 if (the_authctxt) {
2486 do_cleanup(the_authctxt); 2486 do_cleanup(the_authctxt);
2487 if (use_privsep && privsep_is_preauth && pmonitor->m_pid > 1) { 2487 if (use_privsep && privsep_is_preauth &&
2488 pmonitor != NULL && pmonitor->m_pid > 1) {
2488 debug("Killing privsep child %d", pmonitor->m_pid); 2489 debug("Killing privsep child %d", pmonitor->m_pid);
2489 if (kill(pmonitor->m_pid, SIGKILL) != 0 && 2490 if (kill(pmonitor->m_pid, SIGKILL) != 0 &&
2490 errno != ESRCH) 2491 errno != ESRCH)