From b7631d2a280cbb1a4e512181c7dd3b061f806a3c Mon Sep 17 00:00:00 2001 From: Nik Bougalis Date: Tue, 7 Apr 2020 23:17:01 -0700 Subject: [PATCH] Correct a typo that could result in a nullptr dereference --- src/ripple/nodestore/impl/Database.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ripple/nodestore/impl/Database.cpp b/src/ripple/nodestore/impl/Database.cpp index 37f58a212..3f96d6974 100644 --- a/src/ripple/nodestore/impl/Database.cpp +++ b/src/ripple/nodestore/impl/Database.cpp @@ -386,7 +386,7 @@ Database::threadEntry() } // Perform the read - if (lastPcache && lastPcache) + if (lastPcache && lastNcache) doFetch(lastHash, lastSeq, *lastPcache, *lastNcache, true); } }