commit b53bf46: [Minor] Dmarc_report: Fix return type

Vsevolod Stakhov vsevolod at highsecure.ru
Mon Aug 9 15:28:04 UTC 2021


Author: Vsevolod Stakhov
Date: 2021-08-09 15:58:38 +0100
URL: https://github.com/rspamd/rspamd/commit/b53bf462801aa36901059b98035355951a215124

[Minor] Dmarc_report: Fix return type

---
 lualib/rspamadm/dmarc_report.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lualib/rspamadm/dmarc_report.lua b/lualib/rspamadm/dmarc_report.lua
index 1b0bc7f24..f459b5064 100644
--- a/lualib/rspamadm/dmarc_report.lua
+++ b/lualib/rspamadm/dmarc_report.lua
@@ -491,7 +491,7 @@ local function prepare_report(opts, start_time, rep_key)
           {'DEL', rep_key})
     end
     logger.messagex('Cannot process reports for domain %s; invalid dmarc record', reporting_domain)
-    return 0
+    return nil
   end
 
   -- Get all reports for a domain


More information about the Commits mailing list