From b0d33e510e003a04c367476723f00877a5822c7d Mon Sep 17 00:00:00 2001 From: Lu Wang Date: Thu, 8 Sep 2016 02:05:26 +0800 Subject: [PATCH] Init Discovery Response TLV flag (#528) --- 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 fb66cec4c..227bebc6f 100644 --- a/src/core/thread/meshcop_tlvs.hpp +++ b/src/core/thread/meshcop_tlvs.hpp @@ -972,7 +972,7 @@ public: * This method initializes the TLV. * */ - void Init(void) { SetType(kDiscoveryResponse); SetLength(sizeof(*this) - sizeof(Tlv)); mReserved = 0; } + void Init(void) { SetType(kDiscoveryResponse); SetLength(sizeof(*this) - sizeof(Tlv)); mFlags = 0; mReserved = 0; } /** * This method indicates whether or not the TLV appears to be well-formed.