mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-25 22:54:57 +02:00
Bugfix: null derefence in Service::ApplyCheckResult.
This commit is contained in:
parent
ce49e3856b
commit
e10d4f6b8b
@ -517,13 +517,17 @@ void Service::ApplyCheckResult(const Dictionary::Ptr& cr)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* reschedule dependencies */
|
/* reschedule dependencies */
|
||||||
String svc;
|
Dictionary::Ptr dependencies = GetDependencies();
|
||||||
BOOST_FOREACH(tie(tuples::ignore, svc), GetDependencies()) {
|
|
||||||
if (!Service::Exists(svc))
|
|
||||||
continue;
|
|
||||||
|
|
||||||
Service::Ptr service = Service::GetByName(svc);
|
if (dependencies) {
|
||||||
service->SetNextCheck(Utility::GetTime());
|
String svc;
|
||||||
|
BOOST_FOREACH(tie(tuples::ignore, svc), dependencies) {
|
||||||
|
if (!Service::Exists(svc))
|
||||||
|
continue;
|
||||||
|
|
||||||
|
Service::Ptr service = Service::GetByName(svc);
|
||||||
|
service->SetNextCheck(Utility::GetTime());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user