summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorMarkus Friedl <markus@cvs.openbsd.org>2003-10-15 09:48:46 +0000
committerMarkus Friedl <markus@cvs.openbsd.org>2003-10-15 09:48:46 +0000
commit1f708bd66208a3e03551de10b98eadbfcbb358a0 (patch)
tree3fbdf4d204b89c617cf76c292063ec6b120c9177 /usr.bin
parent17f923a1cfd91525975897b525a599292efc61e3 (diff)
check pmonitor != NULL
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/ssh/monitor_wrap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/monitor_wrap.c b/usr.bin/ssh/monitor_wrap.c
index 06056da56d9..6b7408dd294 100644
--- a/usr.bin/ssh/monitor_wrap.c
+++ b/usr.bin/ssh/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 <openssl/bn.h>
#include <openssl/dh.h>
@@ -71,7 +71,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