diff options
| author | Philip Kaufmann <[email protected]> | 2014-12-07 12:57:11 +0100 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2014-12-19 18:47:00 +0100 |
| commit | 84857e87e42e412336ea60d0f8544c1679bab827 (patch) | |
| tree | 0438b735df655f30e66600f73d3a28a0258896ff /src/main.cpp | |
| parent | Merge pull request #5334 (diff) | |
| download | discoin-84857e87e42e412336ea60d0f8544c1679bab827.tar.xz discoin-84857e87e42e412336ea60d0f8544c1679bab827.zip | |
add missing CAutoFile::IsNull() check in main
Rebased-From: ccd056a30db0ba5e04b858a682907b378e464d34
Github-Pull: #5437
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index 9c038f90f..3e0741ae7 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1086,6 +1086,8 @@ bool GetTransaction(const uint256 &hash, CTransaction &txOut, uint256 &hashBlock CDiskTxPos postx; if (pblocktree->ReadTxIndex(hash, postx)) { CAutoFile file(OpenBlockFile(postx, true), SER_DISK, CLIENT_VERSION); + if (file.IsNull()) + return error("%s: OpenBlockFile failed", __func__); CBlockHeader header; try { file >> header; |