[LEDE-DEV] [PATCH] service: fix service_handle_event array
Pierre Lebleu
pme.lebleu at gmail.com
Wed Oct 25 08:43:16 PDT 2017
The array concerning the "config.change" is __VALIDATE_MAX length,
not __DATA_MAX length.
Signed-off-by: Pierre Lebleu <pme.lebleu at gmail.com>
---
service/service.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/service/service.c b/service/service.c
index f425c0a..45cb9aa 100644
--- a/service/service.c
+++ b/service/service.c
@@ -563,7 +563,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]));
--
1.9.1
More information about the Lede-dev
mailing list