From 461495eed39581807d2d3326a501e3b798b9092e Mon Sep 17 00:00:00 2001 From: Lu Wang Date: Wed, 28 Sep 2016 00:07:24 +0800 Subject: [PATCH] Only check tlvs affect connectivity for MGMT_ACTIVE_SET (#694) * Only check tlvs affect connectivity for MGMT_ACTIVE_SET --- src/core/thread/meshcop_dataset_manager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/thread/meshcop_dataset_manager.cpp b/src/core/thread/meshcop_dataset_manager.cpp index be7240b1f..039012345 100644 --- a/src/core/thread/meshcop_dataset_manager.cpp +++ b/src/core/thread/meshcop_dataset_manager.cpp @@ -265,8 +265,8 @@ void DatasetManager::HandleSet(Coap::Header &aHeader, Message &aMessage, const I } // verify the request does not include fields that affect connectivity - if (tlvType == Tlv::kChannel || tlvType == Tlv::kMeshLocalPrefix || - tlvType == Tlv::kPanId || tlvType == Tlv::kNetworkMasterKey) + if ((type == Tlv::kActiveTimestamp) && (tlvType == Tlv::kChannel || tlvType == Tlv::kMeshLocalPrefix + || tlvType == Tlv::kPanId || tlvType == Tlv::kNetworkMasterKey)) { ExitNow(state = StateTlv::kReject); }