good for merge On Tue, 2010-05-04 at 09:52 +1000, Angus Salkeld wrote: > This to make sure older releases can deal with new exec functions. > > -Angus > > > Signed-off-by: Angus Salkeld <[email protected]> > --- > exec/main.c | 6 ++++++ > 1 files changed, 6 insertions(+), 0 deletions(-) > > diff --git a/exec/main.c b/exec/main.c > index 2275490..147821c 100644 > --- a/exec/main.c > +++ b/exec/main.c > @@ -834,6 +834,12 @@ static void deliver_fn ( > serialize_unlock(); > return; > } > + if (fn_id >= ais_service[service]->exec_engine_count) { > + log_printf(LOGSYS_LEVEL_WARNING, "discarded unknown message %d > for service %d (max id %d)", > + fn_id, service, > ais_service[service]->exec_engine_count); > + serialize_unlock(); > + return; > + } > > objdb->object_key_increment (service_stats_handle[service][fn_id], > "rx", strlen("rx"),
_______________________________________________ Openais mailing list [email protected] https://lists.linux-foundation.org/mailman/listinfo/openais
