lightning: fix reverse test causing crash when paying to no owner.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell 2017-06-20 10:08:17 +09:30
parent 122598dffc
commit 5b1d60839a
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}