Fix the length of msg buffer after realloc
Signed-off-by: Rujun Wang <chinawrj@gmail.com>
This commit is contained in:
parent
976719d89c
commit
2f09fd7181
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue