Skip to contentSkip to conversation

cluster/rgmanager/src/utils clustat.c

Cluster-devel [email protected] 1 participant 1 message Dec 13, 2006

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/cluster
Module name: cluster
Changes by: lhh at sourceware.org 2006-12-13 17:12:03

Modified files:
rgmanager/src/utils: clustat.c

Log message:
Fix segfault in clustat if node is not a cluster member

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/utils/clustat.c.diff?cvsroot=cluster&r1=1.25&r2=1.26

rgmanager/src/utils/clustat.c +3 -0
@@ -345,6 +345,9 @@
 	int x, y;
 	cman_node_t *m, *new;
 
+	if (!these)
+		return all;
+
 	for (x=0; x<these->cml_count; x++) {
 
 		m = NULL;