From 6609ec647f262eee75dafbe7f3e9ec9f70693605 Mon Sep 17 00:00:00 2001 From: Michael Friedrich Date: Tue, 3 Apr 2018 14:43:48 +0200 Subject: [PATCH] GelfWriter: Fix crash on invalid performance data metrics Spotted while comparing the source code of several performance data writer. refs #6191 --- lib/perfdata/gelfwriter.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/perfdata/gelfwriter.cpp b/lib/perfdata/gelfwriter.cpp index ca9008127..d95c8c4dc 100644 --- a/lib/perfdata/gelfwriter.cpp +++ b/lib/perfdata/gelfwriter.cpp @@ -250,6 +250,7 @@ void GelfWriter::CheckResultHandlerInternal(const Checkable::Ptr& checkable, con Log(LogWarning, "GelfWriter") << "Ignoring invalid perfdata value: '" << val << "' for object '" << checkable->GetName() << "'."; + continue; } } -- 2.40.0