From: Vsevolod Stakhov Date: Tue, 23 Feb 2016 11:36:47 +0000 (+0000) Subject: Add sanity guards for ip_score X-Git-Tag: 1.2.0~182 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=581cb8e455c88e16da88cc5fc82b137cd257654b;p=rspamd.git Add sanity guards for ip_score Issue: #536 Reported by: @AlexeySa --- diff --git a/src/plugins/lua/ip_score.lua b/src/plugins/lua/ip_score.lua index ab89cca91..c18e11e0a 100644 --- a/src/plugins/lua/ip_score.lua +++ b/src/plugins/lua/ip_score.lua @@ -146,7 +146,7 @@ local ip_score_set = function(task) local pool = task:get_mempool() local asn, country, ipnet = ip_score_get_task_vars(task) - if not pool:has_variable('ip_score') then + if not pool:has_variable('ip_score') or not asn or not country or not ipnet then return end