diff --git a/src/core/thread/mle_router.cpp b/src/core/thread/mle_router.cpp index 4df5a0846..4e70eb23b 100644 --- a/src/core/thread/mle_router.cpp +++ b/src/core/thread/mle_router.cpp @@ -972,6 +972,9 @@ otError MleRouter::HandleLinkAccept(const Message & aMessage, VerifyOrExit(route.IsValid(), error = OT_ERROR_PARSE); SuccessOrExit(error = ProcessRouteTlv(route)); UpdateRoutes(route, routerId); + // need to update router after ProcessRouteTlv + router = mRouterTable.GetRouter(routerId); + OT_ASSERT(router != nullptr); } // update routing table