]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
Do not append CRLF in case of relaxed canonization algorithm. Pointed out by Vlad...
authorVsevolod Stakhov <vsevolod@rambler-co.ru>
Thu, 9 Aug 2012 11:40:26 +0000 (15:40 +0400)
committerVsevolod Stakhov <vsevolod@rambler-co.ru>
Thu, 9 Aug 2012 11:40:26 +0000 (15:40 +0400)
src/dkim.c

index 7d4d9147114a1b322e4c85c26498429639121d2e..92359fc0b748b8ecb182ee266cff1b0d12896b3d 100644 (file)
@@ -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");