aboutsummaryrefslogtreecommitdiffstats
path: root/lualib/lua_meta.lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-09-29 13:37:28 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-09-29 13:37:28 +0100
commit6af78598677e8b3e4c915a5617084d7de02437d6 (patch)
treed3a97c490e5c2f7119c71b03c2bdde9f6a9a6d82 /lualib/lua_meta.lua
parentb0474bae143c822e230177a08df20497bcfd98e0 (diff)
downloadrspamd-6af78598677e8b3e4c915a5617084d7de02437d6.tar.gz
rspamd-6af78598677e8b3e4c915a5617084d7de02437d6.zip
[Minor] Fix hash invocation
Diffstat (limited to 'lualib/lua_meta.lua')
-rw-r--r--lualib/lua_meta.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/lualib/lua_meta.lua b/lualib/lua_meta.lua
index 936adb141..deca2a58c 100644
--- a/lualib/lua_meta.lua
+++ b/lualib/lua_meta.lua
@@ -424,15 +424,15 @@ end
local function calculate_digest()
local cr = require "rspamd_cryptobox_hash"
- cr.create()
+ local h = cr.create()
for _,mt in ipairs(metafunctions) do
for i=1,mt.ninputs do
local name = mt.names[i]
- cr:update(name)
+ h:update(name)
end
end
- exports.digest = cr:hex()
+ exports.digest = h:hex()
end
local function rspamd_gen_metatokens(task, names)