ubusd: fix processing object method signatures
authorFelix Fietkau <nbd@openwrt.org>
Tue, 1 Apr 2014 11:45:29 +0000 (13:45 +0200)
committerFelix Fietkau <nbd@openwrt.org>
Tue, 1 Apr 2014 11:45:29 +0000 (13:45 +0200)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
ubusd_proto.c

index 811aa79f478782544e2ee236e09da0a21832a468..130e9a8007aec328cb3be10494f0a0b15c5a4a22 100644 (file)
@@ -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);