From 9df900dd442399c013d4e30363baec13aa11663c Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 30 Dec 2016 18:02:51 +0000 Subject: [PATCH] [Fix] Fix signing headers creation in DKIM MFH: true --- src/libserver/dkim.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libserver/dkim.c b/src/libserver/dkim.c index 20750eefe..0977badf2 100644 --- a/src/libserver/dkim.c +++ b/src/libserver/dkim.c @@ -2159,7 +2159,7 @@ rspamd_dkim_sign (struct rspamd_task *task, rspamd_dkim_canonize_header (&ctx->common, task, dh->name, dh->count, NULL, NULL); - for (j = 0; j < dh->count; j++) { + for (j = 0; j < dh->count + 1; j++) { rspamd_printf_gstring (hdr, "%s:", dh->name); } } -- 2.39.5