Commit a8528ac
committed
bitcoin/block.c: add null check after pull_bitcoin_tx_only
Commit 40dd780 switched from pull_bitcoin_tx to pull_bitcoin_tx_only
but did not add a null check, causing a segfault (FATAL SIGNAL 11) if
pull_bitcoin_tx_only returns NULL due to a malformed block response
from bitcoind.
Add null check consistent with existing patterns in the codebase and
with pull_bitcoin_tx itself.
Fixes: 40dd780 bitcoin_block_from_hex: avoid creating PSBT wrappers for finalized block txs1 parent daa3b06 commit a8528ac
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
210 | 210 | | |
211 | 211 | | |
212 | 212 | | |
| 213 | + | |
| 214 | + | |
213 | 215 | | |
214 | 216 | | |
215 | 217 | | |
| |||
0 commit comments