aboutsummaryrefslogtreecommitdiffstats
path: root/src/rspamadm
diff options
context:
space:
mode:
Diffstat (limited to 'src/rspamadm')
-rw-r--r--src/rspamadm/fuzzy_stat.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rspamadm/fuzzy_stat.lua b/src/rspamadm/fuzzy_stat.lua
index 69b39be9a..8f430a2d1 100644
--- a/src/rspamadm/fuzzy_stat.lua
+++ b/src/rspamadm/fuzzy_stat.lua
@@ -174,7 +174,7 @@ return function(args, res)
res_db['errors_ips'] = {}
end
for ip,nerrors in pairs(v) do
- if not errors_ips[ip] then
+ if not res_db['errors_ips'][ip] then
res_db['errors_ips'][ip] = nerrors
else
res_db['errors_ips'][ip] = nerrors + res_db['errors_ips'][ip]