]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Deepcopy is not good for recursive schemas
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 19 Sep 2018 13:56:34 +0000 (14:56 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 19 Sep 2018 13:56:53 +0000 (14:56 +0100)
src/plugins/lua/reputation.lua

index 86a220cd714a3ce3ae88a923505c4e739fb09303..3cb6379f9ecb7460f79d2af1b91d8d8d3d0b0afc 100644 (file)
@@ -1199,8 +1199,8 @@ local function parse_rule(name, tbl)
   end
   -- Allow config override
   local rule = {
-    selector = lua_util.deepcopy(selector),
-    backend = lua_util.deepcopy(backend),
+    selector = lua_util.shallowcopy(selector),
+    backend = lua_util.shallowcopy(backend),
     config = {}
   }