From 7e886ac3e2d160e573d45da21a1d562298a2def9 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 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 -- 2.39.5