mirror of
https://github.com/wownero/wownero.git
synced 2026-11-24 09:34:06 +01:00
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:
@@ -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))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user