From: Alexander Moisseev Date: Thu, 18 Feb 2016 07:37:08 +0000 (+0300) Subject: Unbreak bad_hosts check X-Git-Tag: 1.2.0~209^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F530%2Fhead;p=thirdparty%2Frspamd.git Unbreak bad_hosts check --- diff --git a/src/plugins/lua/once_received.lua b/src/plugins/lua/once_received.lua index 7d5d5edbb1..a5c65f9909 100644 --- a/src/plugins/lua/once_received.lua +++ b/src/plugins/lua/once_received.lua @@ -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