From a7e4a0407bc316c0c1d19bcf18df0f8a31727a64 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 11 Oct 2019 12:24:17 +0100 Subject: [PATCH] [Fix] Grrr, fix empty ip case --- src/plugins/lua/multimap.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/lua/multimap.lua b/src/plugins/lua/multimap.lua index bafa27476..50733d92d 100644 --- a/src/plugins/lua/multimap.lua +++ b/src/plugins/lua/multimap.lua @@ -783,13 +783,13 @@ local function multimap_callback(task, rule) local process_rule_funcs = { ip = function() local ip = task:get_from_ip() - if ip:is_valid() then + if ip and ip:is_valid() then match_rule(rule, ip) end end, dnsbl = function() local ip = task:get_from_ip() - if ip:is_valid() then + if ip and ip:is_valid() then local to_resolve = ip_to_rbl(ip, rule['map']) local function dns_cb(_, _, results, err) lua_util.debugm(N, rspamd_config, -- 2.39.5