From: Vsevolod Stakhov Date: Mon, 10 Jan 2022 19:57:31 +0000 (+0000) Subject: [Minor] Arc: Do not fail if no AAR header is presented X-Git-Tag: 3.2~110 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=0c533d20e6c22426ad8015f6568f373d9c8a5519;p=rspamd.git [Minor] Arc: Do not fail if no AAR header is presented --- 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)