[icinga-checkins] icinga.org: icinga2/master: Fix crash in Checkable:: ProcessCheckResult when cr is NULL

git at icinga.org git at icinga.org
Mon Aug 8 14:18:14 CEST 2016


Module: icinga2
Branch: master
Commit: 1beef64dc408e199443b84cb0011cc7d98086799
URL:    https://git.icinga.org/?p=icinga2.git;a=commit;h=1beef64dc408e199443b84cb0011cc7d98086799

Author: Gunnar Beutner <gunnar.beutner at netways.de>
Date:   Mon Aug  8 14:17:44 2016 +0200

Fix crash in Checkable::ProcessCheckResult when cr is NULL

refs #12329

---

 lib/icinga/checkable-check.cpp |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/lib/icinga/checkable-check.cpp b/lib/icinga/checkable-check.cpp
index 299e9f2..8d4b0eb 100644
--- a/lib/icinga/checkable-check.cpp
+++ b/lib/icinga/checkable-check.cpp
@@ -107,6 +107,9 @@ void Checkable::ProcessCheckResult(const CheckResult::Ptr& cr, const MessageOrig
 		m_CheckRunning = false;
 	}
 
+	if (!cr)
+		return;
+
 	double now = Utility::GetTime();
 
 	if (cr->GetScheduleStart() == 0)



More information about the icinga-checkins mailing list