libubus: preserve the received message buffer for incoming invoke calls
authorFelix Fietkau <nbd@openwrt.org>
Mon, 15 Sep 2014 13:40:05 +0000 (15:40 +0200)
committerFelix Fietkau <nbd@openwrt.org>
Mon, 15 Sep 2014 13:40:07 +0000 (15:40 +0200)
commit9562291f688afb5c32cfbd918812e0fc560e5d63
treed3ca34726ad1e57960b75af8199932520cfec5c5
parent6a285141d9cb1c665c090ae53217854d4126a28f
libubus: preserve the received message buffer for incoming invoke calls

Set ctx->msgbuf.data to NULL during the call. If ctx->msgbuf is needed
during the call, a new buffer will be allocated. If not,
ctx->msgbuf.data is restored to the previous value afterwards

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
libubus-obj.c