ubus: fix displaying interface data items
authorFelix Fietkau <nbd@openwrt.org>
Thu, 20 Mar 2014 20:02:02 +0000 (21:02 +0100)
committerFelix Fietkau <nbd@openwrt.org>
Thu, 20 Mar 2014 20:02:02 +0000 (21:02 +0100)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
ubus.c

diff --git a/ubus.c b/ubus.c
index b81136b6d4a1207ea12436e8247b5cf6af88018f..63b26d679b4378f794c7654e7597d896920eb706 100644 (file)
--- a/ubus.c
+++ b/ubus.c
@@ -737,7 +737,7 @@ netifd_dump_status(struct interface *iface)
 
        a = blobmsg_open_table(&b, "data");
        avl_for_each_element(&iface->data, data, node)
-               blob_put(&b, blob_id(data->data), blob_data(data->data), blob_len(data->data));
+               blobmsg_add_blob(&b, data->data);
 
        blobmsg_close_table(&b, a);