From 581cb8e455c88e16da88cc5fc82b137cd257654b Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 23 Feb 2016 11:36:47 +0000 Subject: [PATCH] Add sanity guards for ip_score Issue: #536 Reported by: @AlexeySa --- src/plugins/lua/ip_score.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/lua/ip_score.lua b/src/plugins/lua/ip_score.lua index ab89cca910..c18e11e0a4 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 -- 2.47.3