diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-10-11 12:24:17 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-10-11 12:24:17 +0100 |
commit | a7e4a0407bc316c0c1d19bcf18df0f8a31727a64 (patch) | |
tree | 289e2b22b07439a8eb7e0914f77c82675e431ab8 /src | |
parent | 941a01014917abd9e433ad62ec0c46a3c894d775 (diff) | |
download | rspamd-a7e4a0407bc316c0c1d19bcf18df0f8a31727a64.tar.gz rspamd-a7e4a0407bc316c0c1d19bcf18df0f8a31727a64.zip |
[Fix] Grrr, fix empty ip case
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/lua/multimap.lua | 4 |
1 files 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, |