tx_pool: fix use-after-free in prune()

- txid was a reference to an item which was later deleted in remove_tx_from_transient_lists(), and txid was used after that
This commit is contained in:
SChernykh
2026-06-03 20:47:05 +02:00
parent 8a1de602f0
commit ab6a1c8a3d
+1 -1
View File
@@ -416,7 +416,7 @@ namespace cryptonote
break;
try
{
const crypto::hash &txid = it->second;
const crypto::hash txid = it->second;
txpool_tx_meta_t meta;
if (!m_blockchain.get_txpool_tx_meta(txid, meta))
{