mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 07:04:22 +01:00
openingd: make sure we take utxos on success.
Otherwise recent additional checks in tal() complain that we're freeing a take() pointer. In this case, we're exiting so it's harmless, but it's still a latent bug. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
Christian Decker
parent
7314c71695
commit
b155dbb316
@@ -778,6 +778,9 @@ static u8 *funder_channel(struct state *state,
|
|||||||
|
|
||||||
peer_billboard(false, "Funding channel: opening negotiation succeeded");
|
peer_billboard(false, "Funding channel: opening negotiation succeeded");
|
||||||
|
|
||||||
|
if (taken(utxos))
|
||||||
|
tal_free(utxos);
|
||||||
|
|
||||||
/* BOLT #2:
|
/* BOLT #2:
|
||||||
*
|
*
|
||||||
* The recipient:
|
* The recipient:
|
||||||
|
|||||||
Reference in New Issue
Block a user