The array concerning the "config.change" is __VALIDATE_MAX length,
not __DATA_MAX length.

Signed-off-by: Pierre Lebleu <pme.leb...@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


_______________________________________________
Lede-dev mailing list
Lede-dev@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/lede-dev

Reply via email to