]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Fix signing headers creation in DKIM 1297/head
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 30 Dec 2016 18:02:51 +0000 (18:02 +0000)
committerAndrew Lewis <nerf@judo.za.org>
Tue, 3 Jan 2017 13:41:20 +0000 (15:41 +0200)
MFH: true

src/libserver/dkim.c

index 20750eefeddceb7ae588452cfdd627355090395e..0977badf242863c44437d57785a574f597e589c1 100644 (file)
@@ -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);
                        }
                }