[icinga-checkins] icinga.org: icinga2/master: Add missing lock

git at icinga.org git at icinga.org
Wed Aug 17 09:25:17 CEST 2016


Module: icinga2
Branch: master
Commit: b26b3a4f65203eb11e28a0157a92bf027bf741bf
URL:    https://git.icinga.org/?p=icinga2.git;a=commit;h=b26b3a4f65203eb11e28a0157a92bf027bf741bf

Author: Gunnar Beutner <gunnar.beutner at netways.de>
Date:   Wed Aug 17 09:16:27 2016 +0200

Add missing lock

refs #12450

---

 lib/remote/zone.cpp |    1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/remote/zone.cpp b/lib/remote/zone.cpp
index 55c3c51..a9045c3 100644
--- a/lib/remote/zone.cpp
+++ b/lib/remote/zone.cpp
@@ -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);
 		}



More information about the icinga-checkins mailing list