mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +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 */
|
||||
String svc;
|
||||
BOOST_FOREACH(tie(tuples::ignore, svc), GetDependencies()) {
|
||||
if (!Service::Exists(svc))
|
||||
continue;
|
||||
Dictionary::Ptr dependencies = GetDependencies();
|
||||
|
||||
Service::Ptr service = Service::GetByName(svc);
|
||||
service->SetNextCheck(Utility::GetTime());
|
||||
if (dependencies) {
|
||||
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