diff --git a/lib/icinga/service.cpp b/lib/icinga/service.cpp index 76dc134ce..d297c313d 100644 --- a/lib/icinga/service.cpp +++ b/lib/icinga/service.cpp @@ -369,6 +369,8 @@ std::set Service::GetParentServices(void) const Array::Ptr dependencies = GetServiceDependencies(); if (host && dependencies) { + ObjectLock olock(dependencies); + BOOST_FOREACH(const Value& dependency, dependencies) { Service::Ptr service = host->GetServiceByShortName(dependency);