From: Jo-Philipp Wich Date: Thu, 26 Jul 2018 12:26:37 +0000 (+0200) Subject: ubus: avoid dumping interface state with NULL message X-Git-Url: https://git.librecmc.org/?p=oweals%2Fodhcpd.git;a=commitdiff_plain;h=44cce3169a961727b1f046b786e7995ffb26a957 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 --- 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); }