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:
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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user