]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Minor] Maillist: Fix checks logic
authorVsevolod Stakhov <vsevolod@rspamd.com>
Sat, 7 May 2022 13:40:58 +0000 (14:40 +0100)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Sat, 7 May 2022 13:40:58 +0000 (14:40 +0100)
src/plugins/lua/maillist.lua

index 81e046928cc52be21fae7c336a781c38a8de3fa5..c639dc2dc17e5b9738fbbb92f99de15520b01d98 100644 (file)
@@ -221,7 +221,7 @@ local function check_generic_list_headers(task)
         lua_util.debugm(N, task, 'has %s header, score = %s', hname, score)
       else
         local score_change = hscore()
-        if score then
+        if score and score_change then
           score = score + score_change
           lua_util.debugm(N, task, 'has %s header, score = %s', hname, score)
         end