Fix potential null dereferences

This commit is contained in:
MeshCollider
2017-08-23 19:47:56 +12:00
parent 3e55f13bfc
commit c001992440
4 changed files with 8 additions and 0 deletions

View File

@@ -251,6 +251,8 @@ bool CheckSequenceLocks(const CTransaction &tx, int flags, LockPoints* lp, bool
AssertLockHeld(mempool.cs);
CBlockIndex* tip = chainActive.Tip();
assert(tip != nullptr);
CBlockIndex index;
index.pprev = tip;
// CheckSequenceLocks() uses chainActive.Height()+1 to evaluate