If nodes have different services loaded then messages sent for a missing
service just crash corosync.

I know this probably not a supported configuration, nor is it a sensible
one, but a crash is not really the best action to take!

This patch causes corosync to simply ignore messages for non-loaded
services.

-- 

Chrissie
Index: exec/main.c
===================================================================
--- exec/main.c	(revision 1690)
+++ exec/main.c	(working copy)
@@ -451,8 +451,10 @@
 	 */
 	service = header->id >> 16;
 	fn_id = header->id & 0xffff;
+	if (!ais_service[service])
+		return;
 	if (endian_conversion_required) {
 		assert(ais_service[service]->exec_engine[fn_id].exec_endian_convert_fn != NULL);
 		ais_service[service]->exec_engine[fn_id].exec_endian_convert_fn
 
 
_______________________________________________
Openais mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/openais

Reply via email to