commit 60b407b: [Minor] Fix ip validity check
Vsevolod Stakhov
vsevolod at highsecure.ru
Thu Dec 2 12:21:04 UTC 2021
Author: Vsevolod Stakhov
Date: 2021-12-02 12:17:06 +0000
URL: https://github.com/rspamd/rspamd/commit/60b407b19f54277cb82bda418e2f2439f39a7f3f (HEAD -> master)
[Minor] Fix ip validity check
---
lualib/plugins/dmarc.lua | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lualib/plugins/dmarc.lua b/lualib/plugins/dmarc.lua
index cd1b8e4b8..783447242 100644
--- a/lualib/plugins/dmarc.lua
+++ b/lualib/plugins/dmarc.lua
@@ -78,7 +78,7 @@ exports.dmarc_report = function (task, settings, data)
local E = {}
local ip = task:get_from_ip()
- if ip and not ip:is_valid() then
+ if not ip or not ip:is_valid() then
rspamd_logger.infox(task, 'cannot store dmarc report for %s: no valid source IP',
data.domain)
return nil
More information about the Commits
mailing list