[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Cluster-devel] cluster/cman-kernel/src membership.c



CVSROOT:	/cvs/cluster
Module name:	cluster
Branch: 	RHEL4
Changes by:	pcaulfield sourceware org	2007-05-03 10:19:01

Modified files:
	cman-kernel/src: membership.c 

Log message:
	Add a check to the only unchecked use of "node" before calling
	start_transition().
	
	This might fix bz#233521

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cman-kernel/src/membership.c.diff?cvsroot=cluster&only_with_tag=RHEL4&r1=1.44.2.26&r2=1.44.2.27

--- cluster/cman-kernel/src/Attic/membership.c	2007/01/19 16:20:14	1.44.2.26
+++ cluster/cman-kernel/src/Attic/membership.c	2007/05/03 10:19:01	1.44.2.27
@@ -2895,7 +2895,8 @@
 	   real master must have gone away in a period of confusion */
 	if (node_state != MASTER && hellomsg->flags & HELLO_FLAG_MASTER) {
 		node = find_node_by_nodeid(saddr->scl_nodeid);
-		start_transition(TRANS_CHECK, node);
+		if (node)
+			start_transition(TRANS_CHECK, node);
 	}
 
 	return 0;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]