dff8d99
From: Andrew Beekhof <andrew@beekhof.net>
dff8d99
Date: Wed, 2 Sep 2015 14:48:17 +1000
dff8d99
Subject: [PATCH] Fix: crmd: Correctly enable/disable notifications
dff8d99
dff8d99
(cherry picked from commit 7368cf120cd5ee848d2bdcd788497a3b89616b05)
dff8d99
---
dff8d99
 crmd/notify.c | 2 +-
dff8d99
 1 file changed, 1 insertion(+), 1 deletion(-)
dff8d99
dff8d99
diff --git a/crmd/notify.c b/crmd/notify.c
dff8d99
index 980bfa6..ccf5ea8 100644
dff8d99
--- a/crmd/notify.c
dff8d99
+++ b/crmd/notify.c
dff8d99
@@ -50,7 +50,7 @@ crmd_enable_notifications(const char *script, const char *target)
dff8d99
     free(notify_target);
dff8d99
     notify_target = NULL;
dff8d99
 
dff8d99
-    if(safe_str_eq(script, "/dev/null")) {
dff8d99
+    if(script == NULL || safe_str_eq(script, "/dev/null")) {
dff8d99
         crm_notice("Notifications disabled");
dff8d99
         return;
dff8d99
     }