aboutsummaryrefslogtreecommitdiff
path: root/src/txmempool.cpp
diff options
context:
space:
mode:
authorSuhas Daftuar <[email protected]>2017-01-10 15:21:21 -0500
committerSuhas Daftuar <[email protected]>2017-01-10 15:21:21 -0500
commitfe7e593b24678082578e76d8f918d4544713b5f0 (patch)
tree9837ee5989036f6ef126eabcf1f2c318beb56754 /src/txmempool.cpp
parentMerge #9353: Add data() method to CDataStream (and use it) (diff)
downloaddiscoin-fe7e593b24678082578e76d8f918d4544713b5f0.tar.xz
discoin-fe7e593b24678082578e76d8f918d4544713b5f0.zip
Fix use-after-free in CTxMemPool::removeConflicts()
Diffstat (limited to 'src/txmempool.cpp')
-rw-r--r--src/txmempool.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/txmempool.cpp b/src/txmempool.cpp
index 4f4540a1f..373687430 100644
--- a/src/txmempool.cpp
+++ b/src/txmempool.cpp
@@ -581,8 +581,8 @@ void CTxMemPool::removeConflicts(const CTransaction &tx)
const CTransaction &txConflict = *it->second;
if (txConflict != tx)
{
- removeRecursive(txConflict);
ClearPrioritisation(txConflict.GetHash());
+ removeRecursive(txConflict);
}
}
}