From: Vsevolod Stakhov Date: Thu, 9 Aug 2012 11:40:26 +0000 (+0400) Subject: Do not append CRLF in case of relaxed canonization algorithm. Pointed out by Vlad... X-Git-Tag: 0.5.2~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d8ea3f8e6b1526a9b1861ff185803e933e19f53f;p=thirdparty%2Frspamd.git Do not append CRLF in case of relaxed canonization algorithm. Pointed out by Vlad via irc. --- diff --git a/src/dkim.c b/src/dkim.c index 7d4d914711..92359fc0b7 100644 --- a/src/dkim.c +++ b/src/dkim.c @@ -890,6 +890,7 @@ rspamd_dkim_canonize_body (rspamd_dkim_context_t *ctx, const gchar *start, const } else { while (rspamd_dkim_relaxed_body_step (ctx->body_hash, &start, end - start + 1)); + return TRUE; } if (*end != '\n' || *(end - 1) != '\r') { msg_debug ("append CRLF");