diff options
author | practicalswift <practicalswift@users.noreply.github.com> | 2019-11-27 21:27:56 +0000 |
---|---|---|
committer | practicalswift <practicalswift@users.noreply.github.com> | 2019-11-27 21:27:56 +0000 |
commit | 73b96c94cb6c2afdee7f151768a96944ecaf9d9b (patch) | |
tree | 910ff3e874b203f2e6104df57990422858bdb408 /src/consensus/validation.h | |
parent | d8a66626d63135fd245d5afc524b88b9a94d208b (diff) |
net: Fix uninitialized read in ProcessMessage(...)
Diffstat (limited to 'src/consensus/validation.h')
-rw-r--r-- | src/consensus/validation.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/consensus/validation.h b/src/consensus/validation.h index e602b9d5f3..3401eb64ca 100644 --- a/src/consensus/validation.h +++ b/src/consensus/validation.h @@ -114,7 +114,7 @@ inline ValidationState::~ValidationState() {}; class TxValidationState : public ValidationState { private: - TxValidationResult m_result; + TxValidationResult m_result = TxValidationResult::TX_RESULT_UNSET; public: bool Invalid(TxValidationResult result, const std::string &reject_reason="", @@ -129,7 +129,7 @@ public: class BlockValidationState : public ValidationState { private: - BlockValidationResult m_result; + BlockValidationResult m_result = BlockValidationResult::BLOCK_RESULT_UNSET; public: bool Invalid(BlockValidationResult result, const std::string &reject_reason="", |