From: Vsevolod Stakhov Date: Wed, 2 Mar 2016 12:58:26 +0000 (+0000) Subject: [Fix] Add more guards for IP address X-Git-Tag: 1.2.0~133 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=894cc089e1421ab56ceed946e65ab5456d57d90b;p=rspamd.git [Fix] Add more guards for IP address --- 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