Skip to content

Commit

Permalink
pay: check for null route in maybe_exclude
Browse files Browse the repository at this point in the history
Fixes (?) #3607

Changelog-Fixed: Fix crash in pay when attempting to find cheaper route with exemptfee
  • Loading branch information
niftynei authored and cdecker committed Apr 8, 2020
1 parent 65eb9d8 commit 3124d43
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions plugins/pay.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 3124d43

Please sign in to comment.