Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15-SP1:Update
pacemaker.19271
bsc#1171372-0011-Fix-fencer-avoid-possible-use-...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File bsc#1171372-0011-Fix-fencer-avoid-possible-use-of-NULL-when-parsing-m.patch of Package pacemaker.19271
From b93020dfea9d794aa2475f73957c90bebcc4d9ca Mon Sep 17 00:00:00 2001 From: "Gao,Yan" <ygao@suse.com> Date: Sat, 9 May 2020 17:11:43 +0200 Subject: [PATCH 11/11] Fix: fencer: avoid possible use-of-NULL when parsing metadata --- daemons/fenced/fenced_commands.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/daemons/fenced/fenced_commands.c b/daemons/fenced/fenced_commands.c index 04402cb91..859e7b752 100644 --- a/daemons/fenced/fenced_commands.c +++ b/daemons/fenced/fenced_commands.c @@ -900,8 +900,11 @@ build_device_from_xml(xmlNode * msg) device->aliases = build_port_aliases(value, &(device->targets)); device->agent_metadata = get_agent_metadata(device->agent); - read_action_metadata(device); - set_bit(device->flags, stonith__device_parameter_flags(device->agent_metadata)); + if (device->agent_metadata) { + read_action_metadata(device); + set_bit(device->flags, + stonith__device_parameter_flags(device->agent_metadata)); + } value = g_hash_table_lookup(device->params, "nodeid"); if (!value) { -- 2.26.1
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