diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-12-30 17:53:07 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-12-30 17:53:56 +0000 |
commit | f2d5546b376a63a1ce8ca3e604fc2fdb127024e6 (patch) | |
tree | 0fe47f10e22473c6619c6e3c292a638bfe80cfd6 /src | |
parent | 7b184d160668cf4596e3210f993b300689e47cb8 (diff) | |
download | rspamd-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.c | 3 |
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); |