]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Arc: Do not fail if no AAR header is presented
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 10 Jan 2022 19:57:31 +0000 (19:57 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 10 Jan 2022 19:57:31 +0000 (19:57 +0000)
src/plugins/lua/arc.lua

index 30d9a6782735ab655c4756106470a0915285abc5..278798d6522c7f0ac38be33fd544aceaccb8feaf 100644 (file)
@@ -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)