diff options
author | Ryan Ofsky <ryan@ofsky.org> | 2023-05-31 15:22:50 -0400 |
---|---|---|
committer | Andrew Chow <github@achow101.com> | 2023-05-31 15:24:06 -0400 |
commit | 1d858b055daeea363e0450f327672658548be4c6 (patch) | |
tree | 549e34a4833228c50d39deb7abca9bb8e3243fec /src/wallet/bdb.cpp | |
parent | 84b2f353bbefb9264284e7430863b2fa1d796d38 (diff) | |
download | bitcoin-1d858b055daeea363e0450f327672658548be4c6.tar.xz |
walletdb: Handle when database keys are empty
Diffstat (limited to 'src/wallet/bdb.cpp')
-rw-r--r-- | src/wallet/bdb.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/bdb.cpp b/src/wallet/bdb.cpp index dbd80718f6..7a1916ddc3 100644 --- a/src/wallet/bdb.cpp +++ b/src/wallet/bdb.cpp @@ -691,7 +691,7 @@ DatabaseCursor::Status BerkeleyCursor::Next(DataStream& ssKey, DataStream& ssVal if (ret == DB_NOTFOUND) { return Status::DONE; } - if (ret != 0 || datKey.get_data() == nullptr || datValue.get_data() == nullptr) { + if (ret != 0) { return Status::FAIL; } |