]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Fix] Fix empty threshold check in greylisting module 1865/head
authorAlexander Moisseev <moiseev@mezonplus.ru>
Tue, 17 Oct 2017 06:22:05 +0000 (09:22 +0300)
committerGitHub <noreply@github.com>
Tue, 17 Oct 2017 06:22:05 +0000 (09:22 +0300)
src/plugins/lua/greylist.lua

index ce59c5e6e4aed465d420ef13f7102be8adc44dbe..76d95acb2e42e56579aa645e8188749d74101c59 100644 (file)
@@ -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