summaryrefslogtreecommitdiffstats
path: root/lualib/lua_scanners/fprot.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lualib/lua_scanners/fprot.lua')
-rw-r--r--lualib/lua_scanners/fprot.lua3
1 files changed, 1 insertions, 2 deletions
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()