projects
/
project
/
ubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from:
c09e4f0
)
ubusd: fix incomplete copy of shared buf during queue-ing
author
Alexandru Ardelean
<ardeleanalex@gmail.com>
Thu, 2 Feb 2017 15:59:49 +0000
(17:59 +0200)
committer
Felix Fietkau
<nbd@nbd.name>
Tue, 7 Feb 2017 09:45:14 +0000
(10:45 +0100)
For a shared ubus_msg_buf, the ubus_msg_ref function will
create a copy for queue-ing.
Problem is, that during the dequeue (especially) in client_cb,
the header is 0-ed (because it's was a newly alloc-ed buffer).
And during ubus_msg_writev(), the header info will be ignored
by the client.
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
No differences found