mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-18 21:35:11 +01:00
fix crash on check with plugin command
This commit is contained in:
parent
7b7a1b7040
commit
9ca07728ad
@ -666,7 +666,7 @@ static struct command_result *plugin_rpcmethod_dispatch(struct command *cmd,
|
||||
struct plugin_request *req;
|
||||
char id[STR_MAX_CHARS(u64)];
|
||||
|
||||
if (cmd->mode == CMD_USAGE) {
|
||||
if (cmd->mode == CMD_USAGE || cmd->mode == CMD_CHECK) {
|
||||
/* FIXME! */
|
||||
cmd->usage = "[params]";
|
||||
return command_param_failed();
|
||||
|
Loading…
Reference in New Issue
Block a user