]> source.dussan.org Git - rspamd.git/commitdiff
Fix dkim canonization for folded headers.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 26 Nov 2013 15:32:02 +0000 (15:32 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 26 Nov 2013 15:32:02 +0000 (15:32 +0000)
src/dkim.c

index 5e62ab55de3798b1c3c11917aa309fe99aa0d15b..c65fb59fd646604fa9c78c44d0ede48ba92caa8e 100644 (file)
@@ -1097,6 +1097,10 @@ rspamd_dkim_canonize_header_relaxed (rspamd_dkim_context_t *ctx, const gchar *he
 
        /* Value part */
        h = header;
+       /* Skip spaces at the beginning */
+       while (g_ascii_isspace (*h)) {
+               h ++;
+       }
        got_sp = FALSE;
 
        while (*h) {