diff --git a/src/core/thread/router_table.cpp b/src/core/thread/router_table.cpp index a45efe945..163a8c44f 100644 --- a/src/core/thread/router_table.cpp +++ b/src/core/thread/router_table.cpp @@ -291,7 +291,7 @@ Error RouterTable::Release(uint8_t aRouterId) for (router = GetFirstEntry(); router != nullptr; router = GetNextEntry(router)) { - if (router->GetNextHop() == rloc16) + if (router->GetNextHop() == aRouterId) { router->SetNextHop(Mle::kInvalidRouterId); router->SetCost(0);