diff options
author | Darren Tucker <dtucker@zip.com.au> | 2003-11-03 20:03:25 +1100 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2003-11-03 20:03:25 +1100 |
commit | a47c9bcda632c6dc85dd3f15a454f154fba8a6a6 (patch) | |
tree | ca138b795acab9050b2448dfd6f2fc74ecdd45cb /monitor_wrap.c | |
parent | 7c582db74b46f841f8efba7f5353ca16bf357ec2 (diff) |
- markus@cvs.openbsd.org 2003/10/15 09:48:45
[monitor_wrap.c]
check pmonitor != NULL
Diffstat (limited to 'monitor_wrap.c')
-rw-r--r-- | monitor_wrap.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 @@ | |||
25 | */ | 25 | */ |
26 | 26 | ||
27 | #include "includes.h" | 27 | #include "includes.h" |
28 | RCSID("$OpenBSD: monitor_wrap.c,v 1.33 2003/10/11 11:36:23 markus Exp $"); | 28 | RCSID("$OpenBSD: monitor_wrap.c,v 1.34 2003/10/15 09:48:45 markus Exp $"); |
29 | 29 | ||
30 | #include <openssl/bn.h> | 30 | #include <openssl/bn.h> |
31 | #include <openssl/dh.h> | 31 | #include <openssl/dh.h> |
@@ -73,7 +73,7 @@ mm_is_monitor(void) | |||
73 | * m_pid is only set in the privileged part, and | 73 | * m_pid is only set in the privileged part, and |
74 | * points to the unprivileged child. | 74 | * points to the unprivileged child. |
75 | */ | 75 | */ |
76 | return (pmonitor->m_pid > 0); | 76 | return (pmonitor && pmonitor->m_pid > 0); |
77 | } | 77 | } |
78 | 78 | ||
79 | void | 79 | void |