From e9eb40c1f7e135f9545cee2dcbe4907b475f745f Mon Sep 17 00:00:00 2001 From: Michael Friedrich Date: Tue, 16 Jul 2013 15:38:59 +0200 Subject: [PATCH] livestatus: fix missing object lock on array in attribute filter --- components/livestatus/attributefilter.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/livestatus/attributefilter.cpp b/components/livestatus/attributefilter.cpp index 27e13af7c..6b510fad0 100644 --- a/components/livestatus/attributefilter.cpp +++ b/components/livestatus/attributefilter.cpp @@ -20,6 +20,7 @@ #include "livestatus/attributefilter.h" #include "base/convert.h" #include "base/array.h" +#include "base/objectlock.h" #include using namespace icinga; @@ -38,6 +39,7 @@ bool AttributeFilter::Apply(const Table::Ptr& table, const Value& row) if (value.IsObjectType()) { if (m_Operator == ">=") { Array::Ptr array = value; + ObjectLock olock(array); BOOST_FOREACH(const String& item, array) { if (item == m_Operand) return true; /* Item found in list. */