]> granicus.if.org Git - icinga2/commitdiff
EventsFilter#Push(): ensure not to modify the global namespace
authorAlexander A. Klimov <alexander.klimov@icinga.com>
Tue, 23 Apr 2019 09:02:01 +0000 (11:02 +0200)
committerMichael Friedrich <michael.friedrich@icinga.com>
Thu, 25 Apr 2019 13:56:38 +0000 (15:56 +0200)
lib/remote/eventqueue.cpp

index f4ede0426f1f728e45cfde518f7dfe85cef5be40..178f095cc3dbe23cd4b8f5bd86a8c9e2da0d8082 100644 (file)
@@ -263,7 +263,7 @@ void EventsFilter::Push(Dictionary::Ptr event)
 {
        for (auto& perFilter : m_Inboxes) {
                if (perFilter.first) {
-                       ScriptFrame frame(true);
+                       ScriptFrame frame(true, new Namespace());
                        frame.Sandboxed = true;
 
                        try {