aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/lua/ip_score.lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-11-16 11:56:48 +0000
committerGitHub <noreply@github.com>2016-11-16 11:56:48 +0000
commita198fea999bc5a35ef8c96236dc007fe69861dda (patch)
tree8a65651a94ed01edac4bcec6186df44caf41488c /src/plugins/lua/ip_score.lua
parent9071dc9646355f757fd5c84b67b56630ea78867f (diff)
parent24f4313ef80b70f7495a16082c54d7f593c76dbe (diff)
downloadrspamd-a198fea999bc5a35ef8c96236dc007fe69861dda.tar.gz
rspamd-a198fea999bc5a35ef8c96236dc007fe69861dda.zip
Merge pull request #1141 from fatalbanana/w
[Minor] Fix warnings
Diffstat (limited to 'src/plugins/lua/ip_score.lua')
-rw-r--r--src/plugins/lua/ip_score.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/lua/ip_score.lua b/src/plugins/lua/ip_score.lua
index ffffb22b1..205fc9627 100644
--- a/src/plugins/lua/ip_score.lua
+++ b/src/plugins/lua/ip_score.lua
@@ -157,7 +157,7 @@ local ip_score_set = function(task)
options['ipnet_prefix'] .. ipnet, string.format('%f|%d', ipnet_score, total_ipnet),
ip:to_string(), string.format('%f|%d', ip_score, total_ip)}
- local ret,_,upstream = rspamd_redis_make_request(task,
+ local ret = rspamd_redis_make_request(task,
redis_params, -- connect params
hkey, -- hash key
true, -- is write
@@ -310,7 +310,7 @@ local ip_score_check = function(task)
local cmd, args = create_get_command()
- local ret,_,upstream = rspamd_redis_make_request(task,
+ local ret = rspamd_redis_make_request(task,
redis_params, -- connect params
ip_score_hash_key(asn, country, ipnet, ip), -- hash key
false, -- is write