]> granicus.if.org Git - icinga2/commitdiff
Add missing lock
authorGunnar Beutner <gunnar.beutner@netways.de>
Wed, 17 Aug 2016 07:16:27 +0000 (09:16 +0200)
committerGunnar Beutner <gunnar.beutner@netways.de>
Wed, 17 Aug 2016 07:20:05 +0000 (09:20 +0200)
refs #12450

lib/remote/zone.cpp

index 55c3c514d555ebf7199d0f78cf462a13ad53bd55..a9045c33c8ae368c56eaa0eab56035fbfa0815de 100644 (file)
@@ -40,6 +40,7 @@ void Zone::OnAllConfigLoaded(void)
        Array::Ptr endpoints = GetEndpointsRaw();
 
        if (endpoints) {
+               ObjectLock olock(endpoints);
                BOOST_FOREACH(const String& endpoint, endpoints) {
                        Endpoint::GetByName(endpoint)->SetCachedZone(this);
                }