diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-03-02 12:58:26 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-03-02 12:58:26 +0000 |
commit | 894cc089e1421ab56ceed946e65ab5456d57d90b (patch) | |
tree | a9261e811ab4c05fc633e135198ae08a37c5b582 /src/plugins/lua/once_received.lua | |
parent | 634ae20ef109cd0416cc8ec392b4aaf7c585b4ef (diff) | |
download | rspamd-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.lua | 2 |
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 |