diff options
Diffstat (limited to 'lualib/lua_meta.lua')
-rw-r--r-- | lualib/lua_meta.lua | 6 |
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) |