From 85eba79f554e0a0b95cfb6d55fe67ce391672c62 Mon Sep 17 00:00:00 2001 From: Michael Friedrich Date: Tue, 3 Apr 2018 14:38:25 +0200 Subject: [PATCH] Elasticsearch: Fix crash with invalid performance data metrics fixes #6191 --- lib/perfdata/elasticsearchwriter.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/perfdata/elasticsearchwriter.cpp b/lib/perfdata/elasticsearchwriter.cpp index d27aec227..67accf3ec 100644 --- a/lib/perfdata/elasticsearchwriter.cpp +++ b/lib/perfdata/elasticsearchwriter.cpp @@ -145,6 +145,7 @@ void ElasticsearchWriter::AddCheckResult(const Dictionary::Ptr& fields, const Ch Log(LogWarning, "ElasticsearchWriter") << "Ignoring invalid perfdata value: '" << val << "' for object '" << checkable->GetName() << "'."; + continue; } } -- 2.40.0