Skip to content

Commit 2d821d6

Browse files
committed
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 <[email protected]>
1 parent adf7663 commit 2d821d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/libplugin.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -929,7 +929,7 @@ struct command_result *jsonrpc_set_datastore_(struct command *cmd,
929929
struct out_req *req;
930930

931931
if (!cb)
932-
cb = ignore_cb;
932+
cb = ignore_and_complete;
933933
if (!errcb)
934934
errcb = plugin_broken_cb;
935935

0 commit comments

Comments
 (0)