mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-08 16:44:22 +01:00
lightningd: fix leak when next peer is unknown.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
Christian Decker
parent
c75f9f4318
commit
ea7e13b5a7
@@ -581,6 +581,7 @@ static void channel_resolve_reply(struct subd *gossip, const u8 *msg,
|
||||
|
||||
if (!peer_id) {
|
||||
local_fail_htlc(gr->hin, WIRE_UNKNOWN_NEXT_PEER, NULL);
|
||||
tal_free(gr);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user