summaryrefslogtreecommitdiffstats
path: root/src/plugins/lua/once_received.lua
diff options
context:
space:
mode:
authoreneq123 <you@example.com>2015-02-11 16:10:21 +0300
committereneq123 <you@example.com>2015-02-11 16:10:21 +0300
commitb0c74e7f5af9006149c7143aee78fad68576181f (patch)
tree695e4e6927e078d7193b350a687c055d17e48520 /src/plugins/lua/once_received.lua
parentb85b078b0ce485c342dc726069a2f8cb9c23411f (diff)
downloadrspamd-b0c74e7f5af9006149c7143aee78fad68576181f.tar.gz
rspamd-b0c74e7f5af9006149c7143aee78fad68576181f.zip
real_ip to_string should not nil
Diffstat (limited to 'src/plugins/lua/once_received.lua')
-rw-r--r--src/plugins/lua/once_received.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/lua/once_received.lua b/src/plugins/lua/once_received.lua
index 3631aaacc..35c509bad 100644
--- a/src/plugins/lua/once_received.lua
+++ b/src/plugins/lua/once_received.lua
@@ -48,10 +48,10 @@ local function check_quantity_received (task)
if not r['real_hostname'] or string.lower(r['real_hostname']) == 'unknown' or
string.match(r['real_hostname'], '^%d+%.%d+%.%d+%.%d+$') then
- if r['real_ip'] then
+ if r['real_ip'] and r['real_ip']:to_string() then
-- Try to resolve it again
task:get_resolver():resolve_ptr(task:get_session(), task:get_mempool(),
- tostring(r['real_ip']), recv_dns_cb)
+ r['real_ip']:to_string(), recv_dns_cb)
else
task:insert_result(symbol_strict, 1)
end