mirror of
https://github.com/espressif/openthread.git
synced 2026-08-31 06:19:54 +00:00
[network-diagnostic] fix initialization of max child timeout (#6806)
This commit is contained in:
@@ -4360,6 +4360,8 @@ Error MleRouter::GetMaxChildTimeout(uint32_t &aTimeout) const
|
||||
{
|
||||
Error error = kErrorNotFound;
|
||||
|
||||
aTimeout = 0;
|
||||
|
||||
VerifyOrExit(IsRouterOrLeader(), error = kErrorInvalidState);
|
||||
|
||||
for (Child &child : Get<ChildTable>().Iterate(Child::kInStateValid))
|
||||
|
||||
Reference in New Issue
Block a user