commit f31b8e4: [Minor] Fix condition

Vsevolod Stakhov vsevolod at highsecure.ru
Wed Dec 9 18:00:08 UTC 2020


Author: Vsevolod Stakhov
Date: 2020-12-09 17:57:14 +0000
URL: https://github.com/rspamd/rspamd/commit/f31b8e4dd3e36c71578458e37fdc5b65bcc253a9 (HEAD -> master)

[Minor] Fix condition

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

diff --git a/src/plugins/lua/spamassassin.lua b/src/plugins/lua/spamassassin.lua
index a0aac9dbe..2e8d943c1 100644
--- a/src/plugins/lua/spamassassin.lua
+++ b/src/plugins/lua/spamassassin.lua
@@ -1492,7 +1492,7 @@ local function post_process()
           return sopt ~= k
         end
 
-        if not already_processed[res_name or 'default'] then
+        if not (already_processed and already_processed[res_name or 'default']) then
           -- Execute symbol
           local function exec_symbol(cur_res)
             local res,trace = expression:process_traced(gen_process_atom_cb(cur_res, task))


More information about the Commits mailing list