aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-09-12 17:47:35 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-09-12 17:47:35 +0100
commit1408e7fd024715a1e4dbf2370410354c666bd2f6 (patch)
tree9952495b266e88560e8be43a06523bd8e155a389 /src/plugins/lua
parent02eb13b68853be1d5e2db65580eca204175e4380 (diff)
downloadrspamd-1408e7fd024715a1e4dbf2370410354c666bd2f6.tar.gz
rspamd-1408e7fd024715a1e4dbf2370410354c666bd2f6.zip
[Minor] Fix fann inputs count check
Diffstat (limited to 'src/plugins/lua')
-rw-r--r--src/plugins/lua/fann_scores.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/lua/fann_scores.lua b/src/plugins/lua/fann_scores.lua
index ea6319801..4508afc17 100644
--- a/src/plugins/lua/fann_scores.lua
+++ b/src/plugins/lua/fann_scores.lua
@@ -311,7 +311,7 @@ end
local function check_fann(id)
if data[id].fann then
- local n = rspamd_config:get_symbols_count() + count_metatokens
+ local n = rspamd_config:get_symbols_count() + count_metatokens()
if n ~= data[id].fann:get_inputs() then
rspamd_logger.infox(rspamd_config, 'fann has incorrect number of inputs: %s, %s symbols' ..