File pacemaker-libcib-use-after-free-deleting-CIB-connection.patch of Package pacemaker.14737
commit 5f264b4be1cd21cecc86a07d159bacc112042cce
Author: Ken Gaillot <kgaillot@redhat.com>
Date: Tue May 2 12:15:54 2017 -0500
Fix: libcib: avoid use-after-free when deleting CIB connection
360cf350 ironically introduced one use-after-free while fixing another
diff --git a/lib/cib/cib_client.c b/lib/cib/cib_client.c
index 907bb5aef..f0e332b79 100644
--- a/lib/cib/cib_client.c
+++ b/lib/cib/cib_client.c
@@ -423,6 +423,7 @@ cib_free_callbacks(cib_t *cib)
list = g_list_remove(list, client);
free(client);
}
+ cib->notify_list = NULL;
}
destroy_op_callback_table();
}