diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-12-02 12:17:06 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-12-02 12:17:06 +0000 |
commit | 60b407b19f54277cb82bda418e2f2439f39a7f3f (patch) | |
tree | 795d3acc070d4b18c6404be4904ca2c05920c412 /lualib/plugins | |
parent | 7bd6659b969b1c183b11fb19437cb46ca5929297 (diff) | |
download | rspamd-60b407b19f54277cb82bda418e2f2439f39a7f3f.tar.gz rspamd-60b407b19f54277cb82bda418e2f2439f39a7f3f.zip |
[Minor] Fix ip validity check
Diffstat (limited to 'lualib/plugins')
-rw-r--r-- | lualib/plugins/dmarc.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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 |