File pacemaker-pengine-make-checks-safer.patch of Package pacemaker.14737

commit f822f38b15e99005f4ace270b6450443d53f6043
Author: Ken Gaillot <kgaillot@redhat.com>
Date:   Mon Jun 19 10:47:24 2017 -0500

    Low: pengine: make checks a little safer

Index: pacemaker-1.1.16+20170320.77ea74d/pengine/graph.c
===================================================================
--- pacemaker-1.1.16+20170320.77ea74d.orig/pengine/graph.c
+++ pacemaker-1.1.16+20170320.77ea74d/pengine/graph.c
@@ -524,7 +524,9 @@ update_action(action_t * then)
 
         clear_bit(changed, pe_graph_updated_first);
 
-        if (first->rsc != then->rsc && is_parent(then->rsc, first->rsc) == FALSE) {
+        if (first->rsc && then->rsc && (first->rsc != then->rsc)
+            && (is_parent(then->rsc, first->rsc) == FALSE)) {
+
             first = rsc_expand_action(first);
         }
         if (first != other->action) {
openSUSE Build Service is sponsored by