1
0
mirror of https://github.com/Icinga/icinga2.git synced 2025-04-08 17:05:25 +02:00

Fix crash in Service::IsReachable().

This commit is contained in:
Gunnar Beutner 2013-02-28 10:26:33 +01:00
parent 975c527b07
commit cb907f4f3b

@ -191,6 +191,11 @@ bool Service::IsReachable(const Service::Ptr& self)
BOOST_FOREACH(const Host::Ptr& host, Service::GetParentHosts(self)) {
Service::Ptr hc = Host::GetHostCheckService(host);
/* ignore hosts that don't have a hostcheck */
if (!hc)
continue;
ObjectLock olock(hc);
/* ignore ourselves */