mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-23 21:55:03 +02:00
Fix null pointer dereference in ApiEvents::RepositoryTimerHandler
fixes #8535
This commit is contained in:
parent
19e160ce92
commit
acd5d55f64
@ -1641,6 +1641,9 @@ void ApiEvents::RepositoryTimerHandler(void)
|
|||||||
|
|
||||||
Zone::Ptr my_zone = my_endpoint->GetZone();
|
Zone::Ptr my_zone = my_endpoint->GetZone();
|
||||||
|
|
||||||
|
if (!my_zone)
|
||||||
|
return;
|
||||||
|
|
||||||
Dictionary::Ptr params = new Dictionary();
|
Dictionary::Ptr params = new Dictionary();
|
||||||
params->Set("seen", Utility::GetTime());
|
params->Set("seen", Utility::GetTime());
|
||||||
params->Set("endpoint", my_endpoint->GetName());
|
params->Set("endpoint", my_endpoint->GetName());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user