]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Minor] Spamassassin: Remove ffi call
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 18 Aug 2020 11:22:50 +0000 (12:22 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 18 Aug 2020 11:22:50 +0000 (12:22 +0100)
src/plugins/lua/spamassassin.lua

index f69c5aa6683d147c482b4173423e134d6089ffe1..07ffd193a5613df544e82adcc83669143473a944 100644 (file)
@@ -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)