mirror of
https://github.com/espressif/openthread.git
synced 2026-10-24 16:23:51 +00:00
`PendingDatasetManager::ApplyActiveDataset()` wrote `GetDelayTimerMinimal()` into the Pending Dataset it generates from an MGMT_ACTIVE_SET request that has to be applied via the Pending Dataset, so a Network Key change requested this way took effect after only the minimal delay. Write `DelayTimerTlv::kDefaultDelay` instead, so such changes cannot take effect faster than the default delay. Any Delay Timer TLV carried in the Active Dataset itself is overwritten, so the outcome is the same whether the request omits the TLV or carries a short one. Add an expect-based CLI regression test covering both the omitted and the short explicit Delay Timer TLV cases. Co-authored-by: aussinfosec <[email protected]>