[dua] fix infinite DUA.req loop (#6797)

Verified that this commit fixes the infinite DUA.req loop.

This is a quick fix. We still need to reactor
mChildIndexDuaRegistering because there are still potential issues.
This commit is contained in:
Simon Lin
2021-07-07 12:49:18 -07:00
committed by GitHub
parent 5ac6fb7de1
commit 8679d997a5
+1 -1
View File
@@ -474,7 +474,7 @@ void DuaManager::PerformNextRegistration(void)
const Ip6::Address *duaPtr = nullptr;
Child * child = nullptr;
if (!mChildDuaMask.Get(mChildIndexDuaRegistering))
if (!mChildDuaMask.Get(mChildIndexDuaRegistering) || mChildDuaRegisteredMask.Get(mChildIndexDuaRegistering))
{
for (Child &iter : Get<ChildTable>().Iterate(Child::kInStateValid))
{