cluster: STABLE3 - dlm_controld.pcmk: Prevent use-of-NULL by checking the node has a valid address before adding it to configfs
Andrew Beekhof
beekhof at fedoraproject.org
Wed Apr 28 11:41:39 UTC 2010
Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=fa24b460c51aa0c47d0842703feea8bca0ed66b7
Commit: fa24b460c51aa0c47d0842703feea8bca0ed66b7
Parent: f89866864bad9e2cc4f60e4f44dde888829fac19
Author: Andrew Beekhof <andrew at beekhof.net>
AuthorDate: Wed Apr 28 12:37:57 2010 +0200
Committer: Andrew Beekhof <andrew at beekhof.net>
CommitterDate: Wed Apr 28 12:37:57 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 c661343..93c1841 100644
--- a/group/dlm_controld/pacemaker.c
+++ b/group/dlm_controld/pacemaker.c
@@ -123,7 +123,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;
}
More information about the cluster-commits
mailing list