From 2d821d6012d94dcd900bd310ba893b36ff7f5a9f Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Fri, 16 May 2025 21:34:21 +0930 Subject: [PATCH] libplugin: fix jsonrpc_set_datastore_binary/jsonrpc_set_datastore_string with NULL cb. This should complete the command, otherwise we get an assertion on line 1090. Signed-off-by: Rusty Russell --- plugins/libplugin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/libplugin.c b/plugins/libplugin.c index ce8176746..b70fe94d1 100644 --- a/plugins/libplugin.c +++ b/plugins/libplugin.c @@ -929,7 +929,7 @@ struct command_result *jsonrpc_set_datastore_(struct command *cmd, struct out_req *req; if (!cb) - cb = ignore_cb; + cb = ignore_and_complete; if (!errcb) errcb = plugin_broken_cb;