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 <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2025-05-16 21:34:21 +09:30
parent adf7663fef
commit 2d821d6012

View File

@@ -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;