mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-09 09:04:25 +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:
committed by
Christian Decker
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,
|
||||
|
||||
Reference in New Issue
Block a user