]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Fix signing headers creation in DKIM
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 30 Dec 2016 18:02:51 +0000 (18:02 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 30 Dec 2016 18:02:51 +0000 (18:02 +0000)
MFH: true

src/libserver/dkim.c

index 4740ebccda6e084598f203df77d4f863da33ccef..7e2dbec8975774764812733a75c1242bcfe00828 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);
                        }
                }