diff --git a/src/core/border_router/routing_manager.cpp b/src/core/border_router/routing_manager.cpp index e061fb37c..599fb58ef 100644 --- a/src/core/border_router/routing_manager.cpp +++ b/src/core/border_router/routing_manager.cpp @@ -3317,8 +3317,8 @@ Error RoutingManager::PdPrefixManager::Process(const Ip6::Nd::RouterAdvertMessag continue; } - entry.mPrefix.SetLength(kOmrPrefixLength); entry.mPrefix.Tidy(); + entry.mPrefix.SetLength(kOmrPrefixLength); // The platform may send another RA message to announce that the current prefix we are using is no longer // preferred or no longer valid.