]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Do something when no successful replies are detected 4694/head
authorVsevolod Stakhov <vsevolod@rspamd.com>
Fri, 10 Nov 2023 10:25:36 +0000 (10:25 +0000)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Fri, 10 Nov 2023 10:25:36 +0000 (10:25 +0000)
lualib/rspamadm/fuzzy_ping.lua

index 4f5940f0c43862f1d3c925eeadaf2109f3e9cbe8..e0345da5f5cc1414f5f8ff243b8d4ba696c55fe8 100644 (file)
@@ -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