commit 74336a5: [Minor] Replies: Make var local

Vsevolod Stakhov vsevolod at highsecure.ru
Fri May 15 11:49:11 UTC 2020


Author: Vsevolod Stakhov
Date: 2020-05-15 12:42:59 +0100
URL: https://github.com/rspamd/rspamd/commit/74336a58c4266f4fcd17480028e96d58b6a40fe3 (HEAD -> master)

[Minor] Replies: Make var local

---
 src/plugins/lua/replies.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/plugins/lua/replies.lua b/src/plugins/lua/replies.lua
index 945c2123c..66a36ff00 100644
--- a/src/plugins/lua/replies.lua
+++ b/src/plugins/lua/replies.lua
@@ -159,7 +159,7 @@ local function replies_set(task)
   local sender = task:get_reply_sender()
 
   if sender then
-    sender_hash = make_key(sender:lower(), 8)
+    local sender_hash = make_key(sender:lower(), 8)
     lua_util.debugm(N, task, 'storing id: %s (%s), reply-to: %s (%s) for replies check',
                       msg_id, key, sender, sender_hash)
     local ret = lua_redis.redis_make_request(task,


More information about the Commits mailing list