diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-09-19 14:56:34 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-09-19 14:56:53 +0100 |
commit | 50d51fca34585b51c1e6ecd168bda6e9e48b0bb2 (patch) | |
tree | 21759833a8c747d456c8863a63706e2fab299ebd /src | |
parent | 34dacbe0c8bbe7ad6179fd1057ad11affeeb0cb8 (diff) | |
download | rspamd-50d51fca34585b51c1e6ecd168bda6e9e48b0bb2.tar.gz rspamd-50d51fca34585b51c1e6ecd168bda6e9e48b0bb2.zip |
[Minor] Deepcopy is not good for recursive schemas
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/lua/reputation.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/lua/reputation.lua b/src/plugins/lua/reputation.lua index 86a220cd7..3cb6379f9 100644 --- a/src/plugins/lua/reputation.lua +++ b/src/plugins/lua/reputation.lua @@ -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 = {} } |