Adam Ierymenko 4 lat temu
rodzic
commit
4e3a59f329
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      service/OneService.cpp

+ 2 - 2
service/OneService.cpp

@@ -2002,11 +2002,11 @@ public:
 			// that do not yet have routes in the system.
 			for(std::map< InetAddress, SharedPtr<ManagedRoute> >::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<ManagedRoute> >::iterator r(n.managedRoutes.begin());r!=n.managedRoutes.end();++r) {
 				if (r->second->via())
-					n->second->sync();
+					r->second->sync();
 			}
 		}