From: Vsevolod Stakhov Date: Fri, 30 Dec 2016 17:53:07 +0000 (+0000) Subject: [CritFix] Deal with absent headers in DKIM X-Git-Tag: 1.4.2~6^2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=85723f1bde9d1774728e9318b8e5aa525143059d;p=rspamd.git [CritFix] Deal with absent headers in DKIM MFH: true --- diff --git a/src/libserver/dkim.c b/src/libserver/dkim.c index eab074936..20750eefe 100644 --- a/src/libserver/dkim.c +++ b/src/libserver/dkim.c @@ -1727,7 +1727,8 @@ rspamd_dkim_canonize_header (struct rspamd_dkim_common_ctx *ctx, rh_num = ar->len - count - 1; } else { - rh_num = ar->len - 1; + /* Absence of header is just NULL signature update */ + return TRUE; } rh = g_ptr_array_index (ar, rh_num);