diff options
author | Andrew Lewis <nerf@judo.za.org> | 2017-10-18 12:40:07 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-18 12:40:07 +0200 |
commit | 353909278aaee7985784d70c95be50ecc7b3bce4 (patch) | |
tree | c8ef74c07576433f1086d5d616b13ca87c02b6fc | |
parent | f53e901f3469cab9e2ec6f5983e66e25c87f5731 (diff) | |
parent | 7e886ac3e2d160e573d45da21a1d562298a2def9 (diff) | |
download | rspamd-353909278aaee7985784d70c95be50ecc7b3bce4.tar.gz rspamd-353909278aaee7985784d70c95be50ecc7b3bce4.zip |
Merge pull request #1865 from moisseev/patch-1
[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 |