From: Gunnar Beutner Date: Thu, 10 Nov 2016 12:42:50 +0000 (+0100) Subject: Fix crash in Checkable::OnAllConfigLoaded X-Git-Tag: v2.6.0~67 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=06e4b4e9da73bb654f0a91bc5257f4c8e118abb0;p=icinga2 Fix crash in Checkable::OnAllConfigLoaded fixes #13103 --- 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.")); }