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