[LEDE-DEV] [UBUS] [PATCH] Issue of msgbuf_data_len in ubus_context
Wang Linetkux
chinawrj at gmail.com
Sat Jun 18 21:21:17 PDT 2016
Sorry, forgot to paste the patch in the email for easy reading.
---
libubus-io.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libubus-io.c b/libubus-io.c
index 9320bf3..0582ff7 100644
--- a/libubus-io.c
+++ b/libubus-io.c
@@ -259,6 +259,7 @@ static bool alloc_msg_buf(struct ubus_context
*ctx, int len)
return false;
ctx->msgbuf.data = ptr;
+ ctx->msgbuf_data_len = len;
return true;
}
2016-06-19 12:16 GMT+08:00 Wang Linetkux <chinawrj at gmail.com>:
> Hi, Guys
> Since I cannot find other places to send this patch, so I send it
> here, and hope it does not bother you.
> "alloc_msg_buf" function in "ubus/libubus-io.c" has the feature that
> expand or shrink msg buffer when necessary. But I have noticed that
> "msgbuf_data_len" has been properly set after msg buffer is expanded,
> and it still stays with its origin value. I have generated one patch
> for this bug. Feel free to talk with me, just in case I am wrong.
>
> ubus repo on lede:
> https://git.lede-project.org/?p=project/ubus.git;a=summary
>
>
> Rujun
More information about the Lede-dev
mailing list