From 3adc6d6e2a64a0ccd2bf662360b4788e8c751e45 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 10 Nov 2023 10:25:36 +0000 Subject: [PATCH] [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 -- 2.39.5