]> granicus.if.org Git - icinga2/commitdiff
GelfWriter: Fix crash on invalid performance data metrics 6193/head
authorMichael Friedrich <michael.friedrich@icinga.com>
Tue, 3 Apr 2018 12:43:48 +0000 (14:43 +0200)
committerMichael Friedrich <michael.friedrich@icinga.com>
Tue, 3 Apr 2018 12:43:48 +0000 (14:43 +0200)
Spotted while comparing the source code of several performance data
writer.

refs #6191

lib/perfdata/gelfwriter.cpp

index ca900812728b2211ab7c58088e310fb4c7da71bc..d95c8c4dc019c02e9954d94accc0c0e54003b461 100644 (file)
@@ -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;
                                        }
                                }