aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorAndrew Lewis <nerf@judo.za.org>2015-02-11 23:15:25 +0200
committerAndrew Lewis <nerf@judo.za.org>2015-02-11 23:15:25 +0200
commitc806ae7bf588bb135b1d10127036eff4cad7f33f (patch)
treedafe28074c556a677d6288750d34b6b4360498c8 /src/plugins
parenta47433fe9254dca742f0b392e07276641ced5d10 (diff)
downloadrspamd-c806ae7bf588bb135b1d10127036eff4cad7f33f.tar.gz
rspamd-c806ae7bf588bb135b1d10127036eff4cad7f33f.zip
Further amendments for changes to RBL module
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/lua/rbl.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/lua/rbl.lua b/src/plugins/lua/rbl.lua
index a5d67d414..3db397556 100644
--- a/src/plugins/lua/rbl.lua
+++ b/src/plugins/lua/rbl.lua
@@ -124,7 +124,7 @@ local function rbl_cb (task)
end
if not havegot['from'] then
havegot['from'] = task:get_from_ip()
- if havegot['from'] == nil then
+ if not havegot['from']:is_valid() then
notgot['from'] = true
return
end
@@ -147,7 +147,7 @@ local function rbl_cb (task)
end
if not havegot['received'] then
havegot['received'] = task:get_received_headers()
- if havegot['received'] == nil then
+ if next(havegot['received']) == nil then
notgot['received'] = true
return
end