From 06e4b4e9da73bb654f0a91bc5257f4c8e118abb0 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Thu, 10 Nov 2016 13:42:50 +0100 Subject: [PATCH] Fix crash in Checkable::OnAllConfigLoaded fixes #13103 --- lib/icinga/checkable.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/icinga/checkable.cpp b/lib/icinga/checkable.cpp index 19b65ed09..1ddb962ca 100644 --- a/lib/icinga/checkable.cpp +++ b/lib/icinga/checkable.cpp @@ -63,7 +63,7 @@ void Checkable::OnAllConfigLoaded(void) Zone::Ptr cmdZone = endpoint->GetZone(); - if (cmdZone != checkableZone && cmdZone->GetParent() != checkableZone) { + if (checkableZone && cmdZone != checkableZone && cmdZone->GetParent() != checkableZone) { BOOST_THROW_EXCEPTION(ValidationError(this, boost::assign::list_of("command_endpoint"), "Command endpoint must be in zone '" + checkableZone->GetName() + "' or in a direct child zone thereof.")); }