commit 3adc6d6: [Minor] Do something when no successful replies are detected

Vsevolod Stakhov vsevolod at rspamd.com
Fri Nov 10 13:49:17 UTC 2023


Author: Vsevolod Stakhov
Date: 2023-11-10 10:25:36 +0000
URL: https://github.com/rspamd/rspamd/commit/3adc6d6e2a64a0ccd2bf662360b4788e8c751e45 (refs/pull/4694/head)

[Minor] Do something when no successful replies are detected

---
 lualib/rspamadm/fuzzy_ping.lua | 4 ++++
 1 file changed, 4 insertions(+)

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
 


More information about the Commits mailing list