From 696bfb50068a16a072c45bc133a87d01d7c23e4d Mon Sep 17 00:00:00 2001 From: Alexander Moisseev Date: Tue, 17 Oct 2017 09:22:05 +0300 Subject: [PATCH] [Fix] Fix empty threshold check in greylisting module --- src/plugins/lua/greylist.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.47.3