From 6a59efde561bfcc9c486b217376c80bf3ff75423 Mon Sep 17 00:00:00 2001 From: Jonathan Hui Date: Mon, 12 Sep 2016 08:42:43 -0700 Subject: [PATCH] Initialize DiscoveryRequestTlv::mFlags. (#559) --- src/core/thread/meshcop_tlvs.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/thread/meshcop_tlvs.hpp b/src/core/thread/meshcop_tlvs.hpp index 8cabd2716..1610867a0 100644 --- a/src/core/thread/meshcop_tlvs.hpp +++ b/src/core/thread/meshcop_tlvs.hpp @@ -1293,7 +1293,7 @@ public: * This method initializes the TLV. * */ - void Init(void) { SetType(kDiscoveryRequest); SetLength(sizeof(*this) - sizeof(Tlv)); mReserved = 0; } + void Init(void) { SetType(kDiscoveryRequest); SetLength(sizeof(*this) - sizeof(Tlv)); mFlags = 0; mReserved = 0; } /** * This method indicates whether or not the TLV appears to be well-formed.