Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15-SP7:Update
pacemaker.26927
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.26927
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 --- fencing/commands.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) Index: pacemaker-1.1.18+20180430.b12c320f5/fencing/commands.c =================================================================== --- pacemaker-1.1.18+20180430.b12c320f5.orig/fencing/commands.c +++ pacemaker-1.1.18+20180430.b12c320f5/fencing/commands.c @@ -960,8 +960,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) {
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