File bug-964183_pacemaker-crmd-use-after-free.patch of Package pacemaker.3577
commit 5f0130fa31ed8c147f6132923e7cebf03a383c0b
Author: Gao,Yan <ygao@suse.com>
Date: Tue Feb 2 13:39:23 2016 +0100
Fix: crmd: Prevent potential use-after-free
diff --git a/crmd/lrm_state.c b/crmd/lrm_state.c
index 7ea4e8a..6d3cd6a 100644
--- a/crmd/lrm_state.c
+++ b/crmd/lrm_state.c
@@ -238,7 +238,8 @@ lrm_state_init_local(void)
proxy_table =
g_hash_table_new_full(crm_strcase_hash, crm_strcase_equal, NULL, remote_proxy_free);
if (!proxy_table) {
- g_hash_table_destroy(lrm_state_table);
+ g_hash_table_destroy(lrm_state_table);
+ lrm_state_table = NULL;
return FALSE;
}