From 5b1d60839a6a60d6ff61add62dac0003a8fa71fe Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Tue, 20 Jun 2017 10:08:17 +0930 Subject: [PATCH] lightning: fix reverse test causing crash when paying to no owner. Signed-off-by: Rusty Russell --- lightningd/pay.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lightningd/pay.c b/lightningd/pay.c index 168090432..8127f6e8a 100644 --- a/lightningd/pay.c +++ b/lightningd/pay.c @@ -315,7 +315,7 @@ static void json_sendpay(struct command *cmd, if (!peer->owner || !streq(peer->owner->name, "lightningd_channel")) { command_fail(cmd, "first peer in %s", - peer->owner ? "limbo" : peer->owner->name); + peer->owner ? peer->owner->name : "limbo"); return; }