From 6af78598677e8b3e4c915a5617084d7de02437d6 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sat, 29 Sep 2018 13:37:28 +0100 Subject: [Minor] Fix hash invocation --- lualib/lua_meta.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lualib') 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) -- cgit v1.2.3