Explorar o código

Don't crash if we get a message for a service that isn't loaded.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1699 fd59a12c-fef9-0310-b244-a6a79926bd2f
Christine Caulfield %!s(int64=17) %!d(string=hai) anos
pai
achega
ccef86ebb9
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      exec/main.c

+ 2 - 0
exec/main.c

@@ -451,6 +451,8 @@ static void deliver_fn (
 	 */
 	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