Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15-SP7:Update
pacemaker.16898
bsc#1131353-bsc#1131356-0008-Fix-libcrmcommon-a...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File bsc#1131353-bsc#1131356-0008-Fix-libcrmcommon-avoid-use-of-NULL-when-checking-whe.patch of Package pacemaker.16898
From 7dda20dac25f07eae959ca25cc974ef2fa6daf02 Mon Sep 17 00:00:00 2001 From: Ken Gaillot <kgaillot@redhat.com> Date: Wed, 24 Apr 2019 16:25:46 -0500 Subject: [PATCH] Fix: libcrmcommon: avoid use-of-NULL when checking whether process is active --- lib/common/pid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/common/pid.c b/lib/common/pid.c index 2439680c4..4fbf2dd26 100644 --- a/lib/common/pid.c +++ b/lib/common/pid.c @@ -57,7 +57,7 @@ crm_pid_active(long pid, const char *daemon) } else if (rc == 0 && (daemon == NULL || have_proc_pid == -1)) { return 1; /* kill as the only indicator, cannot double check */ - } else { + } else if (daemon != NULL) { /* make sure PID hasn't been reused by another process XXX: might still be just a zombie, which could confuse decisions */ bool checked_through_kill = (rc == 0); -- 2.16.4
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor