commit 2d7d4ff: [Minor] Fix symbol name

Vsevolod Stakhov vsevolod at rspamd.com
Mon Sep 25 14:49:10 UTC 2023


Author: Vsevolod Stakhov
Date: 2023-09-25 15:10:55 +0100
URL: https://github.com/rspamd/rspamd/commit/2d7d4ff1b1050f0b72d4f9df8326e7fd99b2cc2f (refs/pull/4610/head)

[Minor] Fix symbol name

---
 src/plugins/lua/known_senders.lua | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/plugins/lua/known_senders.lua b/src/plugins/lua/known_senders.lua
index 5a04c7dd0..588a180fc 100644
--- a/src/plugins/lua/known_senders.lua
+++ b/src/plugins/lua/known_senders.lua
@@ -83,7 +83,7 @@ local function check_redis_key(task, key, key_ty)
         task:insert_result(settings.symbol, 1.0, string.format("%s:%s", key_ty, key))
       else
         if settings.symbol_unknown then
-          task:insert_result(settings.symbol, 1.0, string.format("%s:%s", key_ty, key))
+          task:insert_result(settings.symbol_unknown, 1.0, string.format("%s:%s", key_ty, key))
         end
         lua_util.debugm(N, task, 'insert key %s, type: %s', key, key_ty)
         -- Insert key to zset and trim it's cardinality
@@ -118,7 +118,7 @@ local function check_redis_key(task, key, key_ty)
         task:insert_result(settings.symbol, 1.0, string.format("%s:%s", key_ty, key))
       else
         if settings.symbol_unknown then
-          task:insert_result(settings.symbol, 1.0, string.format("%s:%s", key_ty, key))
+          task:insert_result(settings.symbol_unknown, 1.0, string.format("%s:%s", key_ty, key))
         end
         lua_util.debugm(N, task, 'insert key %s, type: %s', key, key_ty)
         -- Reserve bloom filter space


More information about the Commits mailing list