projects
/
icinga2
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c7602a0
)
Fix crash in Checkable::ProcessCheckResult when cr is NULL
author
Gunnar Beutner
<gunnar.beutner@netways.de>
Mon, 8 Aug 2016 12:17:44 +0000
(14:17 +0200)
committer
Gunnar Beutner
<gunnar.beutner@netways.de>
Mon, 8 Aug 2016 12:17:44 +0000
(14:17 +0200)
refs #12329
lib/icinga/checkable-check.cpp
patch
|
blob
|
history
diff --git
a/lib/icinga/checkable-check.cpp
b/lib/icinga/checkable-check.cpp
index 299e9f216d6c7d46989c8173e416df69db30228c..8d4b0eb18aaacf4e6281d03a27b55deeb5a171be 100644
(file)
--- 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)