diff options
author | Alexander Moisseev <moiseev@mezonplus.ru> | 2017-10-17 09:22:05 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-17 09:22:05 +0300 |
commit | 7e886ac3e2d160e573d45da21a1d562298a2def9 (patch) | |
tree | e387e66ff942911fbcd7d5ebc0f6da087867afe0 | |
parent | 8994e8b036f1108cbd55ef0a56109aae16f73b6c (diff) | |
download | rspamd-7e886ac3e2d160e573d45da21a1d562298a2def9.tar.gz rspamd-7e886ac3e2d160e573d45da21a1d562298a2def9.zip |
[Fix] Fix empty threshold check in greylisting module
-rw-r--r-- | src/plugins/lua/greylist.lua | 2 |
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 |