mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-22 22:45:27 +01:00
fix memset for route_hop json parsing when no channel_id exists.
Changelog-None
This commit is contained in:
parent
6030d0542a
commit
6af8adde26
1 changed files with 1 additions and 1 deletions
|
@ -1244,7 +1244,7 @@ param_route_hop(struct command *cmd, const char *name, const char *buffer,
|
|||
}
|
||||
|
||||
if (!channeltok) {
|
||||
memset(&res->channel_id, 0, sizeof(struct node_id));
|
||||
memset(&res->channel_id, 0, sizeof(struct short_channel_id));
|
||||
} else if (!json_to_short_channel_id(buffer, channeltok, &res->channel_id)) {
|
||||
return command_fail_badparam(cmd, name, buffer, channeltok,
|
||||
"should be a short_channel_id");
|
||||
|
|
Loading…
Add table
Reference in a new issue