From: Elias Ohm Date: Thu, 2 May 2019 07:03:30 +0000 (+0200) Subject: try without initialization of frame Locals which are not used for permissions filter... X-Git-Tag: v2.11.0-rc1~117^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=refs%2Fpull%2F7155%2Fhead;p=icinga2 try without initialization of frame Locals which are not used for permissions filter and as far as I can see also not for query filters --- diff --git a/lib/remote/filterutility.cpp b/lib/remote/filterutility.cpp index a9740086c..40498f306 100644 --- a/lib/remote/filterutility.cpp +++ b/lib/remote/filterutility.cpp @@ -192,7 +192,7 @@ std::vector FilterUtility::GetFilterTargets(const QueryDescription& qd, c CheckPermission(user, qd.Permission, &permissionFilter); Namespace::Ptr permissionFrameNS = new Namespace(); - ScriptFrame permissionFrame(true, permissionFrameNS); + ScriptFrame permissionFrame(false, permissionFrameNS); for (const String& type : qd.Types) { String attr = type; @@ -243,7 +243,7 @@ std::vector FilterUtility::GetFilterTargets(const QueryDescription& qd, c BOOST_THROW_EXCEPTION(std::invalid_argument("Invalid type specified for this query.")); Namespace::Ptr frameNS = new Namespace(); - ScriptFrame frame(true, frameNS); + ScriptFrame frame(false, frameNS); frame.Sandboxed = true; if (query->Contains("filter")) {