Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.6:Update
pacemaker.29834
bsc#1181744-0008-Fix-st_client-cleanup-token-wh...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File bsc#1181744-0008-Fix-st_client-cleanup-token-whenever-setting-api-to-.patch of Package pacemaker.29834
From af8a02e072cdeb0b4cf22fe21f6230cfa2223c8e Mon Sep 17 00:00:00 2001 From: Klaus Wenninger <klaus.wenninger@aon.at> Date: Wed, 10 Jul 2019 17:57:02 +0200 Subject: [PATCH] Fix: st_client: cleanup token whenever setting api to disconnected --- lib/fencing/st_client.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/fencing/st_client.c b/lib/fencing/st_client.c index eb48b2741..9585737c0 100644 --- a/lib/fencing/st_client.c +++ b/lib/fencing/st_client.c @@ -264,6 +264,7 @@ stonith_connection_destroy(gpointer user_data) native->ipc = NULL; native->source = NULL; + free(native->token); native->token = NULL; stonith->state = stonith_disconnected; crm_xml_add(blob.xml, F_TYPE, T_STONITH_NOTIFY); crm_xml_add(blob.xml, F_SUBTYPE, T_STONITH_NOTIFY_DISCONNECT); @@ -1935,6 +1936,7 @@ stonith_send_command(stonith_t * stonith, const char *op, xmlNode * data, xmlNod done: if (crm_ipc_connected(native->ipc) == FALSE) { crm_err("Fencer disconnected"); + free(native->token); native->token = NULL; stonith->state = stonith_disconnected; } -- 2.26.2
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