mirror of
https://github.com/espressif/openthread.git
synced 2026-10-04 06:47:36 +00:00
[meshcop] do not allow timestamp rollback on leader (#5249)
This commit is contained in:
@@ -169,6 +169,7 @@ otError DatasetManager::Save(const Dataset &aDataset)
|
||||
}
|
||||
else if (compare < 0)
|
||||
{
|
||||
VerifyOrExit(!Get<Mle::MleRouter>().IsLeader(), error = OT_ERROR_INVALID_STATE);
|
||||
SendSet();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user