diff --git a/service/OneService.cpp b/service/OneService.cpp index aef2584f7..4c977c6f7 100644 --- a/service/OneService.cpp +++ b/service/OneService.cpp @@ -2002,11 +2002,11 @@ public: // that do not yet have routes in the system. for(std::map< InetAddress, SharedPtr >::iterator r(n.managedRoutes.begin());r!=n.managedRoutes.end();++r) { if (!r->second->via()) - n->second->sync(); + r->second->sync(); } for(std::map< InetAddress, SharedPtr >::iterator r(n.managedRoutes.begin());r!=n.managedRoutes.end();++r) { if (r->second->via()) - n->second->sync(); + r->second->sync(); } }