mirror of
https://github.com/espressif/openthread.git
synced 2026-09-15 21:50:08 +00:00
[dataset-updater] fix possible use of uninitialized Timestamp (#9658)
This commit is contained in:
@@ -133,6 +133,10 @@ void DatasetUpdater::PreparePendingDataset(void)
|
||||
{
|
||||
timestamp = *Get<PendingDatasetManager>().GetTimestamp();
|
||||
}
|
||||
else
|
||||
{
|
||||
timestamp.Clear();
|
||||
}
|
||||
|
||||
timestamp.AdvanceRandomTicks();
|
||||
dataset.SetTimestamp(Dataset::kPending, timestamp);
|
||||
|
||||
Reference in New Issue
Block a user