From a47c9bcda632c6dc85dd3f15a454f154fba8a6a6 Mon Sep 17 00:00:00 2001 From: Darren Tucker Date: Mon, 3 Nov 2003 20:03:25 +1100 Subject: [PATCH] - markus@cvs.openbsd.org 2003/10/15 09:48:45 [monitor_wrap.c] check pmonitor != NULL --- ChangeLog | 6 +++++- monitor_wrap.c | 4 ++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 2a9340f70..e5db31fc3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,10 @@ - (dtucker) [contrib/cygwin/ssh-host-config] Ensure entries in /etc/services are created correctly with CRLF line terminations. Patch from vinschen at redhat.com. + - (dtucker) OpenBSD CVS Sync + - markus@cvs.openbsd.org 2003/10/15 09:48:45 + [monitor_wrap.c] + check pmonitor != NULL 20031021 - (dtucker) [INSTALL] Some system crypt() functions support MD5 passwords @@ -1376,4 +1380,4 @@ - Fix sshd BindAddress and -b options for systems using fake-getaddrinfo. Report from murple@murple.net, diagnosis from dtucker@zip.com.au -$Id: ChangeLog,v 1.3086 2003/11/03 07:59:29 dtucker Exp $ +$Id: ChangeLog,v 1.3087 2003/11/03 09:03:25 dtucker Exp $ diff --git a/monitor_wrap.c b/monitor_wrap.c index e19984ec0..fe1460422 100644 --- a/monitor_wrap.c +++ b/monitor_wrap.c @@ -25,7 +25,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: monitor_wrap.c,v 1.33 2003/10/11 11:36:23 markus Exp $"); +RCSID("$OpenBSD: monitor_wrap.c,v 1.34 2003/10/15 09:48:45 markus Exp $"); #include #include @@ -73,7 +73,7 @@ mm_is_monitor(void) * m_pid is only set in the privileged part, and * points to the unprivileged child. */ - return (pmonitor->m_pid > 0); + return (pmonitor && pmonitor->m_pid > 0); } void