aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-12-30 17:53:07 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-12-30 17:53:56 +0000
commitf2d5546b376a63a1ce8ca3e604fc2fdb127024e6 (patch)
tree0fe47f10e22473c6619c6e3c292a638bfe80cfd6 /src
parent7b184d160668cf4596e3210f993b300689e47cb8 (diff)
downloadrspamd-f2d5546b376a63a1ce8ca3e604fc2fdb127024e6.tar.gz
rspamd-f2d5546b376a63a1ce8ca3e604fc2fdb127024e6.zip
[CritFix] Deal with absent headers in DKIM
MFH: true
Diffstat (limited to 'src')
-rw-r--r--src/libserver/dkim.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libserver/dkim.c b/src/libserver/dkim.c
index 3a9dff80c..4740ebccd 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);