From 7803538984b8f056656f4040c3e6618259d4eb58 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 26 Nov 2013 15:32:02 +0000 Subject: [PATCH] Fix dkim canonization for folded headers. --- src/dkim.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/dkim.c b/src/dkim.c index 5e62ab55d..c65fb59fd 100644 --- a/src/dkim.c +++ b/src/dkim.c @@ -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) { -- 2.39.5