This is the mail archive of the cluster-cvs@sourceware.org mailing list for the cluster.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

cluster: STABLE3 - cman: Catch failure to determine default multicastaddress


Gitweb:        http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=e34576fbcb9d489d8e4c2e78c9b57e2f68ac18d3
Commit:        e34576fbcb9d489d8e4c2e78c9b57e2f68ac18d3
Parent:        2236b1a9a6d0f64954dff0ba36930e4f93819a3f
Author:        Christine Caulfield <ccaulfie@redhat.com>
AuthorDate:    Mon Jun 15 09:32:14 2009 +0100
Committer:     Christine Caulfield <ccaulfie@redhat.com>
CommitterDate: Mon Jun 15 09:32:14 2009 +0100

cman: Catch failure to determine default multicast address

default_mcast() can fail if it can't determine the IP version
of the local host address. eg it might tbe ambiguous or not available
in the hosts file for some strange reason

Signed-off-by: Christine Caulfield <ccaulfie@redhat.com>
---
 cman/daemon/cman-preconfig.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/cman/daemon/cman-preconfig.c b/cman/daemon/cman-preconfig.c
index 05c8f71..1dc7a26 100644
--- a/cman/daemon/cman-preconfig.c
+++ b/cman/daemon/cman-preconfig.c
@@ -590,7 +590,10 @@ static int get_nodename(struct objdb_iface_ver0 *objdb)
 
 		if (!mcast_name) {
 			mcast_name = default_mcast(nodename, cluster_id);
+
 		}
+		if (!mcast_name)
+			return -1;
 
 		/* See if the user wants our default set of openais services (default=yes) */
 		objdb_get_int(objdb, object_handle, "disable_openais", &disable_openais, 0);


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]