From 321809bea8f9078e87871831d3eed52f516c6422 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Wed, 17 Sep 2014 16:07:12 +0200 Subject: [PATCH] Fix null pointer deref in PluginUtility::FormatPerfdata refs #7268 --- lib/icinga/pluginutility.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/icinga/pluginutility.cpp b/lib/icinga/pluginutility.cpp index 715ea66ee..9f8810ae7 100644 --- a/lib/icinga/pluginutility.cpp +++ b/lib/icinga/pluginutility.cpp @@ -272,6 +272,9 @@ Array::Ptr PluginUtility::SplitPerfdata(const String& perfdata) String PluginUtility::FormatPerfdata(const Array::Ptr& perfdata) { + if (!perfdata) + return ""; + std::ostringstream result; ObjectLock olock(perfdata);