aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Moisseev <moiseev@mezonplus.ru>2017-10-17 09:22:05 +0300
committerGitHub <noreply@github.com>2017-10-17 09:22:05 +0300
commit7e886ac3e2d160e573d45da21a1d562298a2def9 (patch)
treee387e66ff942911fbcd7d5ebc0f6da087867afe0
parent8994e8b036f1108cbd55ef0a56109aae16f73b6c (diff)
downloadrspamd-7e886ac3e2d160e573d45da21a1d562298a2def9.tar.gz
rspamd-7e886ac3e2d160e573d45da21a1d562298a2def9.zip
[Fix] Fix empty threshold check in greylisting module
-rw-r--r--src/plugins/lua/greylist.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/lua/greylist.lua b/src/plugins/lua/greylist.lua
index ce59c5e6e..76d95acb2 100644
--- a/src/plugins/lua/greylist.lua
+++ b/src/plugins/lua/greylist.lua
@@ -413,7 +413,7 @@ if opts then
settings['greylist_min_score'] = tonumber(settings['greylist_min_score'])
else
local greylist_threshold = rspamd_config:get_metric_action('greylist')
- if greylist_threshold == greylist_threshold then
+ if greylist_threshold then
settings['greylist_min_score'] = greylist_threshold
end
end