From 7c9e76ed087434e0fdbfb99d11182dae17e36f2c Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Tue, 1 Apr 2014 13:45:29 +0200 Subject: [PATCH] ubusd: fix processing object method signatures Signed-off-by: Felix Fietkau --- ubusd_proto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ubusd_proto.c b/ubusd_proto.c index 811aa79..130e9a8 100644 --- a/ubusd_proto.c +++ b/ubusd_proto.c @@ -165,7 +165,7 @@ static void ubusd_send_obj(struct ubus_client *cl, struct ubus_msg_buf *ub, stru s = blob_nest_start(&b, UBUS_ATTR_SIGNATURE); list_for_each_entry(m, &obj->type->methods, list) - blob_put(&b, blob_id(m->data), blob_data(m->data), blob_len(m->data)); + blobmsg_add_blob(&b, m->data); blob_nest_end(&b, s); ubus_send_msg_from_blob(cl, ub, UBUS_MSG_DATA); -- 2.11.0