Gitweb:
http://git.fedorahosted.org/git/dlm.git?p=dlm.git;a=commitdiff;h=6607f2d2...
Commit: 6607f2d209adb983b4642faef8a66f91ba9c727d
Parent: fae6ee3915d0d1ba3add3082ccd159955b120e45
Author: Andrew Beekhof <andrew(a)beekhof.net>
AuthorDate: Wed Apr 28 12:37:57 2010 +0200
Committer: Andrew Beekhof <andrew(a)beekhof.net>
CommitterDate: Wed Apr 28 13:55:11 2010 +0200
dlm_controld.pcmk: Prevent use-of-NULL by checking the node has a valid address before
adding it to configfs
---
group/dlm_controld/pacemaker.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/group/dlm_controld/pacemaker.c b/group/dlm_controld/pacemaker.c
index 810c644..3150a1f 100644
--- a/group/dlm_controld/pacemaker.c
+++ b/group/dlm_controld/pacemaker.c
@@ -128,7 +128,7 @@ void dlm_process_node(gpointer key, gpointer value, gpointer
user_data)
} else if(rc == 0) {
do_remove = TRUE;
- } else if(is_active) {
+ } else if(is_active && node->addr) {
do_add = TRUE;
}