mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-18 05:12:45 +01:00
pay: check for null route in maybe_exclude
Fixes (?) #3607 Changelog-Fixed: Fix crash in pay when attempting to find cheaper route with exemptfee
This commit is contained in:
parent
65eb9d8f43
commit
3124d43d9f
@ -698,6 +698,9 @@ static bool maybe_exclude(struct pay_command *pc,
|
||||
{
|
||||
const jsmntok_t *scid, *dir;
|
||||
|
||||
if (!route)
|
||||
return false;
|
||||
|
||||
scid = json_get_member(buf, route, "channel");
|
||||
|
||||
if (node_or_channel_in_routehint(pc->plugin,
|
||||
|
Loading…
Reference in New Issue
Block a user