aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorpracticalswift <practicalswift@users.noreply.github.com>2019-11-27 21:27:56 +0000
committerpracticalswift <practicalswift@users.noreply.github.com>2019-11-27 21:27:56 +0000
commit73b96c94cb6c2afdee7f151768a96944ecaf9d9b (patch)
tree910ff3e874b203f2e6104df57990422858bdb408 /src
parentd8a66626d63135fd245d5afc524b88b9a94d208b (diff)
downloadbitcoin-73b96c94cb6c2afdee7f151768a96944ecaf9d9b.tar.xz
net: Fix uninitialized read in ProcessMessage(...)
Diffstat (limited to 'src')
-rw-r--r--src/consensus/validation.h4
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="",