]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Fix] Fix empty threshold check in greylisting module 1870/head
authorAlexander Moisseev <moiseev@mezonplus.ru>
Tue, 17 Oct 2017 06:22:05 +0000 (09:22 +0300)
committerAndrew Lewis <nerf@judo.za.org>
Thu, 19 Oct 2017 08:40:02 +0000 (10:40 +0200)
src/plugins/lua/greylist.lua

index ed73be36de6f9d1e6fd86d598779db6c426a3450..2d3d43aca92224fc343547851f8c248df7668ae9 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