commit 749baf4: [Minor] Spamassassin: Remove ffi call

Vsevolod Stakhov vsevolod at highsecure.ru
Tue Aug 18 11:28:07 UTC 2020


Author: Vsevolod Stakhov
Date: 2020-08-18 12:22:50 +0100
URL: https://github.com/rspamd/rspamd/commit/749baf462ac7659c832e6f337e52fb7c75695166 (HEAD -> master)

[Minor] Spamassassin: Remove ffi call

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

diff --git a/src/plugins/lua/spamassassin.lua b/src/plugins/lua/spamassassin.lua
index f69c5aa66..07ffd193a 100644
--- a/src/plugins/lua/spamassassin.lua
+++ b/src/plugins/lua/spamassassin.lua
@@ -166,6 +166,8 @@ if type(jit) == 'table' then
 end
 
 local function process_regexp_opt(re, task, re_type, header, strong)
+  --[[
+  -- This is now broken with lua regexp conditions!
   if type(jit) == 'table' then
     -- Use ffi call
     local itype = ffi.C.rspamd_re_cache_type_from_string(re_type)
@@ -181,6 +183,8 @@ local function process_regexp_opt(re, task, re_type, header, strong)
   else
     return task:process_regexp(re, re_type, header, strong)
   end
+  --]]
+  return task:process_regexp(re, re_type, header, strong)
 end
 
 local function is_pcre_only(name)


More information about the Commits mailing list