Blame SOURCES/005-avoid-null-dereference.patch

fada68
From 8eb3c07119fec6da0712b3940706a14ad3a66483 Mon Sep 17 00:00:00 2001
fada68
From: Ken Gaillot <kgaillot@redhat.com>
fada68
Date: Tue, 26 Jul 2016 14:16:32 -0500
fada68
Subject: [PATCH] Fix: pengine: avoid null dereference in new same-node
fada68
 ordering option
fada68
fada68
---
fada68
 pengine/graph.c | 2 +-
fada68
 1 file changed, 1 insertion(+), 1 deletion(-)
fada68
fada68
diff --git a/pengine/graph.c b/pengine/graph.c
fada68
index a713c71..9b55a4e 100644
fada68
--- a/pengine/graph.c
fada68
+++ b/pengine/graph.c
fada68
@@ -510,7 +510,7 @@ update_action(action_t * then)
fada68
         }
fada68
 
fada68
         /* Disable constraint if it only applies when on same node, but isn't */
fada68
-        if (is_set(other->type, pe_order_same_node)
fada68
+        if (is_set(other->type, pe_order_same_node) && first_node && then_node
fada68
             && (first_node->details != then_node->details)) {
fada68
 
fada68
             crm_trace("Disabled constraint %s on %s -> %s on %s",
fada68
-- 
fada68
1.8.3.1
fada68