From 3124d43d9ff6810fb0885db46e172043e4aac101 Mon Sep 17 00:00:00 2001 From: lisa neigut Date: Tue, 7 Apr 2020 17:55:31 -0500 Subject: [PATCH] pay: check for null route in maybe_exclude Fixes (?) #3607 Changelog-Fixed: Fix crash in pay when attempting to find cheaper route with exemptfee --- plugins/pay.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/pay.c b/plugins/pay.c index 62831f9ab..e8d3bc32d 100644 --- a/plugins/pay.c +++ b/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,