From: Pierre Lebleu Date: Wed, 25 Oct 2017 15:43:16 +0000 (+0200) Subject: service: fix service_handle_event array X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=56a02e3eb411f1ac3bf8432dc1b41d18d831c309;p=oweals%2Fprocd.git service: fix service_handle_event array The array concerning the "config.change" is __VALIDATE_MAX length, not __DATA_MAX length. Signed-off-by: Pierre Lebleu --- diff --git a/service/service.c b/service/service.c index 9c798aa..ce730bc 100644 --- a/service/service.c +++ b/service/service.c @@ -536,7 +536,7 @@ service_handle_event(struct ubus_context *ctx, struct ubus_object *obj, trigger_event(event, tb[EVENT_DATA]); if (!strcmp(event, "config.change")) { - struct blob_attr *tb2[__DATA_MAX]; + struct blob_attr *tb2[__VALIDATE_MAX]; blobmsg_parse(validate_policy, __VALIDATE_MAX, tb2, blobmsg_data(tb[EVENT_DATA]), blobmsg_len(tb[EVENT_DATA]));