From 749baf462ac7659c832e6f337e52fb7c75695166 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 18 Aug 2020 12:22:50 +0100 Subject: [PATCH] [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) -- 2.39.5