public inbox for cluster-cvs@sourceware.org
help / color / mirror / Atom feed
* cluster: STABLE3 - cman: Catch failure to determine default multicast address
@ 2009-06-15  8:34 Christine Caulfield
  0 siblings, 0 replies; only message in thread
From: Christine Caulfield @ 2009-06-15  8:34 UTC (permalink / raw)
  To: cluster-cvs-relay

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);


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-06-15  8:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-15  8:34 cluster: STABLE3 - cman: Catch failure to determine default multicast address Christine Caulfield

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).