projects
/
oweals
/
ubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
976719d
)
Fix the length of msg buffer after realloc
author
Rujun Wang
<chinawrj@gmail.com>
Thu, 23 Jun 2016 03:06:06 +0000
(11:06 +0800)
committer
Felix Fietkau
<nbd@nbd.name>
Sun, 26 Jun 2016 11:05:06 +0000
(13:05 +0200)
Signed-off-by: Rujun Wang <chinawrj@gmail.com>
libubus-io.c
patch
|
blob
|
history
diff --git
a/libubus-io.c
b/libubus-io.c
index 9320bf34e182454271820078e9fc8a208bedae77..0582ff72184bf8dab9e3ca017e84ae6c184f86ad 100644
(file)
--- 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;
}