From: Michael Friedrich Date: Tue, 3 Apr 2018 12:43:48 +0000 (+0200) Subject: GelfWriter: Fix crash on invalid performance data metrics X-Git-Tag: v2.9.0~111^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6609ec647f262eee75dafbe7f3e9ec9f70693605;p=icinga2 GelfWriter: Fix crash on invalid performance data metrics Spotted while comparing the source code of several performance data writer. refs #6191 --- 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; } }