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:
lisa neigut 2020-04-07 17:55:31 -05:00 committed by Christian Decker
parent 65eb9d8f43
commit 3124d43d9f

View File

@ -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,