From 4d152f93625f6a9249bb2f9a4e1c5e19227f7029 Mon Sep 17 00:00:00 2001 From: Carsten Rosenberg Date: Fri, 18 Jan 2019 14:33:38 +0100 Subject: [Minor] lua_scanners - use pattern for FAIL symbol --- lualib/lua_scanners/fprot.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lualib/lua_scanners/fprot.lua') diff --git a/lualib/lua_scanners/fprot.lua b/lualib/lua_scanners/fprot.lua index f002f72c7..e624bc6fd 100644 --- a/lualib/lua_scanners/fprot.lua +++ b/lualib/lua_scanners/fprot.lua @@ -118,8 +118,7 @@ local function fprot_check(task, content, digest, rule) rspamd_logger.errx(task, '%s [%s]: failed to scan, maximum retransmits exceed', rule['symbol'], rule['type']) - task:insert_result(rule['symbol_fail'], 0.0, - 'failed to scan and retransmits exceed') + common.yield_result(task, rule, 'failed to scan and retransmits exceed', 0.0, 'fail') end else upstream:ok() -- cgit v1.2.3