mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-10 11:57:28 -03:00
net: Fix uninitialized read in ProcessMessage(...)
This commit is contained in:
parent
d8a66626d6
commit
73b96c94cb
1 changed files with 2 additions and 2 deletions
|
@ -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="",
|
||||
|
|
Loading…
Reference in a new issue