diff options
author | Rujun Wang <chinawrj@gmail.com> | 2016-06-23 11:06:06 +0800 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2016-06-26 13:05:06 +0200 |
commit | 2f09fd7181dcfdad7f5ea2937c61783122710172 (patch) | |
tree | 291d09d735621ff480e3767599dfe21c6cffd1b8 | |
parent | 976719d89ca58cb6d393ded3a8451b7ba6567361 (diff) | |
download | ubus-2f09fd7181dcfdad7f5ea2937c61783122710172.tar.gz |
Fix the length of msg buffer after realloc
Signed-off-by: Rujun Wang <chinawrj@gmail.com>
-rw-r--r-- | libubus-io.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; } |