commit 0c533d2: [Minor] Arc: Do not fail if no AAR header is presented

Vsevolod Stakhov vsevolod at highsecure.ru
Mon Jan 10 20:00:04 UTC 2022


Author: Vsevolod Stakhov
Date: 2022-01-10 19:57:31 +0000
URL: https://github.com/rspamd/rspamd/commit/0c533d20e6c22426ad8015f6568f373d9c8a5519 (HEAD -> master)

[Minor] Arc: Do not fail if no AAR header is presented

---
 src/plugins/lua/arc.lua | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/plugins/lua/arc.lua b/src/plugins/lua/arc.lua
index 30d9a6782..278798d65 100644
--- a/src/plugins/lua/arc.lua
+++ b/src/plugins/lua/arc.lua
@@ -220,7 +220,10 @@ local function arc_callback(task)
 
   parse_arc_header(arc_seal_headers, cbdata.seals, false)
   parse_arc_header(arc_sig_headers, cbdata.sigs, false)
-  parse_arc_header(arc_ar_headers, cbdata.ars, true)
+
+  if arc_ar_headers then
+    parse_arc_header(arc_ar_headers, cbdata.ars, true)
+  end
 
   -- Fix i type
   fun.each(function(hdr)


More information about the Commits mailing list