From: Michael Friedrich Date: Tue, 3 Apr 2018 12:38:25 +0000 (+0200) Subject: Elasticsearch: Fix crash with invalid performance data metrics X-Git-Tag: v2.9.0~112^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=85eba79f554e0a0b95cfb6d55fe67ce391672c62;p=icinga2 Elasticsearch: Fix crash with invalid performance data metrics fixes #6191 --- 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; } }