]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix multimap hostname check 815/head
authorAndrew Lewis <nerf@judo.za.org>
Fri, 5 Aug 2016 15:10:11 +0000 (16:10 +0100)
committerAndrew Lewis <nerf@judo.za.org>
Fri, 5 Aug 2016 15:12:29 +0000 (16:12 +0100)
src/plugins/lua/multimap.lua

index 90d552a93f28a8c182492425e18e7b397068f924..723a469e5018a85e70924f186107bcea532283ee 100644 (file)
@@ -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