diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-02-11 21:47:36 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-02-11 21:47:36 +0000 |
commit | 31d8cb8d0323e2a800e3fdf623a0eedad72a8dfc (patch) | |
tree | 7ee6676b4d69cd487ccb5bc506da9b1429b274f3 /src/plugins | |
parent | 141e7673fa92b0b396b1d9052390f3bcbc35ffe9 (diff) | |
parent | c806ae7bf588bb135b1d10127036eff4cad7f33f (diff) | |
download | rspamd-31d8cb8d0323e2a800e3fdf623a0eedad72a8dfc.tar.gz rspamd-31d8cb8d0323e2a800e3fdf623a0eedad72a8dfc.zip |
Merge pull request #149 from fatalbanana/master
Fixes for work on RBL module
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/lua/rbl.lua | 4 |
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 |