Fix the length of msg buffer after realloc

Signed-off-by: Rujun Wang <chinawrj@gmail.com>
This commit is contained in:
Rujun Wang 2016-06-23 11:06:06 +08:00 committed by Felix Fietkau
parent 976719d89c
commit 2f09fd7181

View file

@ -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;
}