summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2023-11-10 10:25:36 +0000
committerVsevolod Stakhov <vsevolod@rspamd.com>2023-11-10 10:25:36 +0000
commit3adc6d6e2a64a0ccd2bf662360b4788e8c751e45 (patch)
treea51e4247e379655919334e61f45af55f878b636f
parent01cab363f0441445b57219047344eefa8d0ae7dd (diff)
downloadrspamd-3adc6d6e2a64a0ccd2bf662360b4788e8c751e45.tar.gz
rspamd-3adc6d6e2a64a0ccd2bf662360b4788e8c751e45.zip
[Minor] Do something when no successful replies are detected
-rw-r--r--lualib/rspamadm/fuzzy_ping.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/lualib/rspamadm/fuzzy_ping.lua b/lualib/rspamadm/fuzzy_ping.lua
index 4f5940f0c..e0345da5f 100644
--- a/lualib/rspamadm/fuzzy_ping.lua
+++ b/lualib/rspamadm/fuzzy_ping.lua
@@ -156,6 +156,10 @@ local function print_results(results)
else
err_servers[res.server] = 1
end
+ -- For the case if no successful replies are detected
+ if not servers[res.server] then
+ servers[res.server] = {}
+ end
end
end