Browse Source

pay: check for null route in maybe_exclude

Fixes (?) #3607

Changelog-Fixed: Fix crash in pay when attempting to find cheaper route with exemptfee
travis-debug
lisa neigut 5 years ago
committed by Christian Decker
parent
commit
3124d43d9f
  1. 3
      plugins/pay.c

3
plugins/pay.c

@ -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…
Cancel
Save