From 56a02e3eb411f1ac3bf8432dc1b41d18d831c309 Mon Sep 17 00:00:00 2001 From: Pierre Lebleu Date: Wed, 25 Oct 2017 17:43:16 +0200 Subject: [PATCH] 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 --- service/service.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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])); -- 2.25.1