aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/lua/once_received.lua
diff options
context:
space:
mode:
authorAlexander Moisseev <moiseev@mezonplus.ru>2016-02-18 10:37:08 +0300
committerAlexander Moisseev <moiseev@mezonplus.ru>2016-02-18 10:37:08 +0300
commit6a44267b05002181b5d1578b45e691d7baff837f (patch)
treeba868f1f155aa7009636ce83780665aa6755641e /src/plugins/lua/once_received.lua
parent0ac0e550a387085659c4c6556021da601d93aa34 (diff)
downloadrspamd-6a44267b05002181b5d1578b45e691d7baff837f.tar.gz
rspamd-6a44267b05002181b5d1578b45e691d7baff837f.zip
Unbreak bad_hosts check
Diffstat (limited to 'src/plugins/lua/once_received.lua')
-rw-r--r--src/plugins/lua/once_received.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/lua/once_received.lua b/src/plugins/lua/once_received.lua
index 7d5d5edbb..a5c65f990 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