X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fubus.git;a=blobdiff_plain;f=libubus-io.c;h=55ddff5f62e47ddbb5ce428c2111a85a2fa52d01;hp=ba22dcb88ba4b1e29477956ad7c7330bf284bb51;hb=3e45a782b22c067eab125b377474f5da11eabbe9;hpb=6280cbaf0966928c4f83b925fb5b94c3ecb1936e diff --git a/libubus-io.c b/libubus-io.c index ba22dcb..55ddff5 100644 --- a/libubus-io.c +++ b/libubus-io.c @@ -283,11 +283,10 @@ static bool get_next_msg(struct ubus_context *ctx, int *recv_fd) void __hidden ubus_handle_data(struct uloop_fd *u, unsigned int events) { struct ubus_context *ctx = container_of(u, struct ubus_context, sock); - struct ubus_msghdr *hdr = &ctx->msgbuf.hdr; int recv_fd = -1; while (get_next_msg(ctx, &recv_fd)) { - ubus_process_msg(ctx, hdr, recv_fd); + ubus_process_msg(ctx, &ctx->msgbuf, recv_fd); if (uloop_cancelled) break; }