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

(cherry picked from commit ab6a1c8a3da2b252599fcb72c16f26fa56ba4cc8)
This commit is contained in:
SChernykh
2026-10-04 18:50:20 -04:00
committed by such-gitea
parent 8ffd095a90
commit d894ac3ba6
+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))
{