(apologies if this comes through twice, I used the wrong account before)

I've had aisexec crash in this area once or twice, so some sanity checking might be in order

--- a/exec/main.c       Wed Jan 02 14:51:12 2008 +0100
+++ b/exec/main.c       Tue Jan 15 10:14:43 2008 +0100
@@ -457,8 +457,12 @@ static void deliver_fn (
                        (header);
        }

-       ais_service[service]->exec_service[fn_id].exec_handler_fn
-               (header, nodeid);
+ if(service < SERVICE_HANDLER_MAXIMUM_COUNT && ais_service[service]) {
+            ais_service[service]->exec_service[fn_id].exec_handler_fn
+                (header, nodeid);
+        } else {
+ log_printf (LOG_LEVEL_ERROR, "Could not send message with ais_service[%d]->exec_service[%d].exec_handler_fn\n", service, fn_id);
+        }
}

int main (int argc, char **argv)

_______________________________________________
Openais mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/openais

Reply via email to