Blame SOURCES/0025-Fix-crmd-Prevent-segfault-by-correctly-detecting-whe.patch

3d71c6
From: Andrew Beekhof <andrew@beekhof.net>
3d71c6
Date: Wed, 9 Sep 2015 14:46:49 +1000
3d71c6
Subject: [PATCH] Fix: crmd: Prevent segfault by correctly detecting when
3d71c6
 notifications are not required
3d71c6
3d71c6
(cherry picked from commit 5eb9f93ef666c75e5f32827a92b0a57ada063803)
3d71c6
---
3d71c6
 crmd/notify.c | 2 +-
3d71c6
 1 file changed, 1 insertion(+), 1 deletion(-)
3d71c6
3d71c6
diff --git a/crmd/notify.c b/crmd/notify.c
3d71c6
index ca2be0f..179af18 100644
3d71c6
--- a/crmd/notify.c
3d71c6
+++ b/crmd/notify.c
3d71c6
@@ -141,7 +141,7 @@ crmd_notify_fencing_op(stonith_event_t * e)
3d71c6
 {
3d71c6
     char *desc = NULL;
3d71c6
 
3d71c6
-    if(notify_script) {
3d71c6
+    if(notify_script == NULL) {
3d71c6
         return;
3d71c6
     }
3d71c6