aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/lua/once_received.lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-03-02 12:58:26 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-03-02 12:58:26 +0000
commit894cc089e1421ab56ceed946e65ab5456d57d90b (patch)
treea9261e811ab4c05fc633e135198ae08a37c5b582 /src/plugins/lua/once_received.lua
parent634ae20ef109cd0416cc8ec392b4aaf7c585b4ef (diff)
downloadrspamd-894cc089e1421ab56ceed946e65ab5456d57d90b.tar.gz
rspamd-894cc089e1421ab56ceed946e65ab5456d57d90b.zip
[Fix] Add more guards for IP address
Diffstat (limited to 'src/plugins/lua/once_received.lua')
-rw-r--r--src/plugins/lua/once_received.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/lua/once_received.lua b/src/plugins/lua/once_received.lua
index 7d084a991..4bac5adff 100644
--- a/src/plugins/lua/once_received.lua
+++ b/src/plugins/lua/once_received.lua
@@ -77,7 +77,7 @@ local function check_quantity_received (task)
local hn = task:get_hostname()
-- Here we don't care about received
- if (not hn or hn == 'unknown') and task_ip then
+ if (not hn or hn == 'unknown') and task_ip and task_ip:is_valid() then
task:get_resolver():resolve_ptr({task = task,
name = task_ip:to_string(),
callback = recv_dns_cb