Browse Source

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>
plugin-7
Rusty Russell 6 years ago
committed by Christian Decker
parent
commit
b155dbb316
  1. 3
      openingd/openingd.c

3
openingd/openingd.c

@ -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:

Loading…
Cancel
Save