mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-07-27 07:44:29 +02:00
- djm@cvs.openbsd.org 2014/04/12 04:55:53
[sshd.c] avoid crash at exit: check that pmonitor!=NULL before dereferencing; bz#2225, patch from kavi AT juniper.net
This commit is contained in:
parent
2a328437fb
commit
75c62728dc
@ -85,6 +85,10 @@
|
|||||||
- djm@cvs.openbsd.org 2014/04/01 05:32:57
|
- djm@cvs.openbsd.org 2014/04/01 05:32:57
|
||||||
[packet.c]
|
[packet.c]
|
||||||
demote a debug3 to PACKET_DEBUG; ok markus@
|
demote a debug3 to PACKET_DEBUG; ok markus@
|
||||||
|
- djm@cvs.openbsd.org 2014/04/12 04:55:53
|
||||||
|
[sshd.c]
|
||||||
|
avoid crash at exit: check that pmonitor!=NULL before dereferencing;
|
||||||
|
bz#2225, patch from kavi AT juniper.net
|
||||||
|
|
||||||
20140401
|
20140401
|
||||||
- (djm) On platforms that support it, use prctl() to prevent sftp-server
|
- (djm) On platforms that support it, use prctl() to prevent sftp-server
|
||||||
|
5
sshd.c
5
sshd.c
@ -1,4 +1,4 @@
|
|||||||
/* $OpenBSD: sshd.c,v 1.421 2014/03/26 19:58:37 tedu Exp $ */
|
/* $OpenBSD: sshd.c,v 1.423 2014/04/12 04:55:53 djm Exp $ */
|
||||||
/*
|
/*
|
||||||
* Author: Tatu Ylonen <ylo@cs.hut.fi>
|
* Author: Tatu Ylonen <ylo@cs.hut.fi>
|
||||||
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
|
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
|
||||||
@ -2484,7 +2484,8 @@ cleanup_exit(int i)
|
|||||||
{
|
{
|
||||||
if (the_authctxt) {
|
if (the_authctxt) {
|
||||||
do_cleanup(the_authctxt);
|
do_cleanup(the_authctxt);
|
||||||
if (use_privsep && privsep_is_preauth && pmonitor->m_pid > 1) {
|
if (use_privsep && privsep_is_preauth &&
|
||||||
|
pmonitor != NULL && pmonitor->m_pid > 1) {
|
||||||
debug("Killing privsep child %d", pmonitor->m_pid);
|
debug("Killing privsep child %d", pmonitor->m_pid);
|
||||||
if (kill(pmonitor->m_pid, SIGKILL) != 0 &&
|
if (kill(pmonitor->m_pid, SIGKILL) != 0 &&
|
||||||
errno != ESRCH)
|
errno != ESRCH)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user