Browse Source

lightningd: fix leak when next peer is unknown.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
plugin-timeout-inc
Rusty Russell 6 years ago
committed by Christian Decker
parent
commit
ea7e13b5a7
  1. 1
      lightningd/peer_htlcs.c

1
lightningd/peer_htlcs.c

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

Loading…
Cancel
Save