]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Milter_headers: Use specific settings
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 23 Apr 2021 19:19:05 +0000 (20:19 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 23 Apr 2021 19:19:05 +0000 (20:19 +0100)
Issue: #3728

src/plugins/lua/milter_headers.lua

index b6595402594bf4cdf3e5d88769bf548af641d962..d8240c16cb697c669cf8c4caf7f252b5ddfee0a5 100644 (file)
@@ -503,7 +503,9 @@ local function milter_headers(task)
           settings.routines['authentication-results'].remove
     end
 
-    local res = ar.gen_auth_results(task, nil)
+    local res = ar.gen_auth_results(task,
+        lua_util.override_defaults(ar.default_settings,
+            settings.routines['authentication-results']))
 
     if res then
       add_header('authentication-results', res, ';', 1)