]> source.dussan.org Git - rspamd.git/commitdiff
Further amendments for changes to RBL module 149/head
authorAndrew Lewis <nerf@judo.za.org>
Wed, 11 Feb 2015 21:15:25 +0000 (23:15 +0200)
committerAndrew Lewis <nerf@judo.za.org>
Wed, 11 Feb 2015 21:15:25 +0000 (23:15 +0200)
src/plugins/lua/rbl.lua

index a5d67d4144b542dd7021daae6080501d9c85860b..3db3975568fe637826cbde09321a8367ba555d5e 100644 (file)
@@ -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