From 836103ef57e4d0bda7c235856dad7772a9c709e1 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 refs #6192 --- lib/perfdata/elasticsearchwriter.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/perfdata/elasticsearchwriter.cpp b/lib/perfdata/elasticsearchwriter.cpp index 69221fd88..bfac6349c 100644 --- a/lib/perfdata/elasticsearchwriter.cpp +++ b/lib/perfdata/elasticsearchwriter.cpp @@ -148,6 +148,7 @@ void ElasticsearchWriter::AddCheckResult(const Dictionary::Ptr& fields, const Ch Log(LogWarning, "ElasticsearchWriter") << "Ignoring invalid perfdata value: '" << val << "' for object '" << checkable->GetName() << "'."; + continue; } }