mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-22 06:41:44 +01:00
runes: fix checkrune
when method
parameter is the empty string.
This fix #6725. Changelog-Fixed: fix `checkrune` when `method` parameter is the empty string.
This commit is contained in:
parent
ebee48ca8c
commit
ae94be4ce2
1 changed files with 4 additions and 1 deletions
|
@ -827,7 +827,10 @@ static struct command_result *json_checkrune(struct command *cmd,
|
|||
cinfo.runes = cmd->ld->runes;
|
||||
cinfo.peer = nodeid;
|
||||
cinfo.buf = buffer;
|
||||
cinfo.method = method;
|
||||
if (method != NULL && streq(method, ""))
|
||||
cinfo.method = NULL;
|
||||
else
|
||||
cinfo.method = method;
|
||||
cinfo.params = methodparams;
|
||||
cinfo.now = time_now();
|
||||
strmap_init(&cinfo.cached_params);
|
||||
|
|
Loading…
Add table
Reference in a new issue