From 44cce3169a961727b1f046b786e7995ffb26a957 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Thu, 26 Jul 2018 14:26:37 +0200 Subject: [PATCH] ubus: avoid dumping interface state with NULL message Invoking ubus methods with NULL message is not supported anymore, so make sure that network.interface/dump is called with an empty blob buffer argument. Signed-off-by: Jo-Philipp Wich --- src/ubus.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); } -- 2.30.2