File pacemaker-pengine-null-dereference-same-node-ordering.patch of Package pacemaker.3577
commit 8eb3c07119fec6da0712b3940706a14ad3a66483
Author: Ken Gaillot <kgaillot@redhat.com>
Date: Tue Jul 26 14:16:32 2016 -0500
Fix: pengine: avoid null dereference in new same-node ordering option
diff --git a/pengine/graph.c b/pengine/graph.c
index a713c71..9b55a4e 100644
--- a/pengine/graph.c
+++ b/pengine/graph.c
@@ -510,7 +510,7 @@ update_action(action_t * then)
}
/* Disable constraint if it only applies when on same node, but isn't */
- if (is_set(other->type, pe_order_same_node)
+ if (is_set(other->type, pe_order_same_node) && first_node && then_node
&& (first_node->details != then_node->details)) {
crm_trace("Disabled constraint %s on %s -> %s on %s",