fix crash on check with plugin command

This commit is contained in:
Richard Bondi 2018-12-21 12:02:07 -06:00 committed by Christian Decker
parent 7b7a1b7040
commit 9ca07728ad

View File

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