From 2f09fd7181dcfdad7f5ea2937c61783122710172 Mon Sep 17 00:00:00 2001 From: Rujun Wang Date: Thu, 23 Jun 2016 11:06:06 +0800 Subject: [PATCH] Fix the length of msg buffer after realloc Signed-off-by: Rujun Wang --- 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; } -- 2.11.0