From acd5d55f64de8a40307b7a84c2402830d1175a61 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Wed, 25 Feb 2015 13:59:18 +0100 Subject: [PATCH] Fix null pointer dereference in ApiEvents::RepositoryTimerHandler fixes #8535 --- lib/icinga/apievents.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/icinga/apievents.cpp b/lib/icinga/apievents.cpp index e3aed4c58..c9ca1ea53 100644 --- a/lib/icinga/apievents.cpp +++ b/lib/icinga/apievents.cpp @@ -1641,6 +1641,9 @@ void ApiEvents::RepositoryTimerHandler(void) Zone::Ptr my_zone = my_endpoint->GetZone(); + if (!my_zone) + return; + Dictionary::Ptr params = new Dictionary(); params->Set("seen", Utility::GetTime()); params->Set("endpoint", my_endpoint->GetName());