summaryrefslogtreecommitdiffhomepage
path: root/src/ubus.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ubus.c')
-rw-r--r--src/ubus.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ubus.c b/src/ubus.c
index 973ae5a..5be6bbe 100644
--- a/src/ubus.c
+++ b/src/ubus.c
@@ -225,7 +225,9 @@ static void update_netifd(bool subscribe)
ubus_subscribe(ubus, &netifd, objid);
ubus_abort_request(ubus, &req_dump);
- if (!ubus_invoke_async(ubus, objid, "dump", NULL, &req_dump)) {
+ blob_buf_init(&b, 0);
+
+ if (!ubus_invoke_async(ubus, objid, "dump", b.head, &req_dump)) {
req_dump.data_cb = handle_dump;
ubus_complete_request_async(ubus, &req_dump);
}