]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix function arguments
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 20 Jul 2018 17:19:03 +0000 (18:19 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 20 Jul 2018 17:19:03 +0000 (18:19 +0100)
src/plugins/lua/reputation.lua

index 536710f134175816656c3bbbbd616774043caa9c..3f21b8030e563f2d2f21eedb4d29fe695a4ddc68 100644 (file)
@@ -561,7 +561,7 @@ local function spf_reputation_filter(task, rule)
 
   local function tokens_cb(err, token, values)
     if values then
-      local score = generic_reputation_calc(token, rule, values)
+      local score = generic_reputation_calc(values, rule, 1.0)
 
       if math.abs(score) > 1e-3 then
         -- TODO: add description