commit a7e4a04: [Fix] Grrr, fix empty ip case
Vsevolod Stakhov
vsevolod at highsecure.ru
Fri Oct 11 12:14:06 UTC 2019
Author: Vsevolod Stakhov
Date: 2019-10-11 12:24:17 +0100
URL: https://github.com/rspamd/rspamd/commit/a7e4a0407bc316c0c1d19bcf18df0f8a31727a64
[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,
More information about the Commits
mailing list