From: Alexander Moisseev Date: Tue, 17 Oct 2017 06:22:05 +0000 (+0300) Subject: [Fix] Fix empty threshold check in greylisting module X-Git-Tag: 1.6.5~2^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F1870%2Fhead;p=thirdparty%2Frspamd.git [Fix] Fix empty threshold check in greylisting module --- diff --git a/src/plugins/lua/greylist.lua b/src/plugins/lua/greylist.lua index ed73be36de..2d3d43aca9 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