]> source.dussan.org Git - rspamd.git/commitdiff
Unbreak bad_hosts check 530/head
authorAlexander Moisseev <moiseev@mezonplus.ru>
Thu, 18 Feb 2016 07:37:08 +0000 (10:37 +0300)
committerAlexander Moisseev <moiseev@mezonplus.ru>
Thu, 18 Feb 2016 07:37:08 +0000 (10:37 +0300)
src/plugins/lua/once_received.lua

index 7d5d5edbb1b19b7616c3cf273711231de947a83b..a5c65f9909597cf8f90a31e0284ca0f3232cf2b9 100644 (file)
@@ -79,8 +79,9 @@ local function check_quantity_received (task)
       return
     end
 
+    local hn = nil
     if r['real_hostname'] then
-      local hn = string.lower(r['real_hostname'])
+      hn = string.lower(r['real_hostname'])
       -- Check for good hostname
       if hn and good_hosts then
         for _,gh in ipairs(good_hosts) do