From: Andrew Lewis Date: Fri, 5 Aug 2016 15:10:11 +0000 (+0100) Subject: [Minor] Fix multimap hostname check X-Git-Tag: 1.3.2~17^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=cff3336f95b699db1942ebc2ded3f3df03a8554b;p=rspamd.git [Minor] Fix multimap hostname check --- diff --git a/src/plugins/lua/multimap.lua b/src/plugins/lua/multimap.lua index 90d552a93..723a469e5 100644 --- a/src/plugins/lua/multimap.lua +++ b/src/plugins/lua/multimap.lua @@ -536,7 +536,7 @@ local function multimap_callback(task, rule) match_content(rule) elseif rt == 'hostname' then local hostname = task:get_hostname() - if hostname ~= 'unknown' then + if hostname and hostname ~= 'unknown' then match_hostname(rule, hostname) end end