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
This commit is contained in:
Christine Caulfield 2008-11-13 09:54:34 +00:00
parent 476bc5e291
commit ccef86ebb9

View File

@ -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