mirror of
https://github.com/espressif/openthread.git
synced 2026-08-23 02:39:52 +00:00
Only check tlvs affect connectivity for MGMT_ACTIVE_SET (#694)
* Only check tlvs affect connectivity for MGMT_ACTIVE_SET
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user