]> source.dussan.org Git - rspamd.git/commitdiff
when metric action is not defined, it reads a score causing a type error where the... 4416/head
authorNishil Shah <nshah@nightwatchapp.com>
Wed, 1 Mar 2023 02:05:42 +0000 (18:05 -0800)
committerNishil Shah <nshah@nightwatchapp.com>
Wed, 1 Mar 2023 02:05:42 +0000 (18:05 -0800)
src/plugins/lua/milter_headers.lua

index 1c35f89b4a455cda248f3c84573fc8368da2a399..02f50be276882310b41bcf5967fce72b02c9b856 100644 (file)
@@ -360,7 +360,7 @@ local function milter_headers(task)
     local local_mod = settings.routines['x-rspamd-action']
     if skip_wanted('x-rspamd-action') then return end
     if not common['metric_action'] then
-      common['metric_action'] = task:get_metric_score()
+      common['metric_action'] = task:get_metric_action()
     end
     local action = common['metric_action']
     if local_mod.remove then