Skip to content

Commit 96fff28

Browse files
committed
psbt: Fix psbt linseraize_input bug
Some fields weren’t intitialized causing complex crashes elsewhere. Changelog-None
1 parent 8724f6d commit 96fff28

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

common/psbt_open.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@ static const u8 *linearize_input(const tal_t *ctx,
8484
psbt->inputs[0].redeem_script_len = 0;
8585
psbt->inputs[0].keypaths.num_items = 0;
8686
psbt->inputs[0].signatures.num_items = 0;
87+
psbt->inputs[0].utxo = NULL;
88+
psbt->inputs[0].witness_utxo = NULL;
8789

8890
const u8 *bytes = psbt_get_bytes(ctx, psbt, &byte_len);
8991

0 commit comments

Comments
 (0)