]> source.dussan.org Git - rspamd.git/commitdiff
Fix one more sequence case.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 5 Jan 2014 20:36:56 +0000 (20:36 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 5 Jan 2014 20:36:56 +0000 (20:36 +0000)
src/dkim.c

index e40c6969e0f512613788c03f2cddcd2ff153c0e5..bd57cd2321c563c0063c2ebf481cf934c0d0b958 100644 (file)
@@ -1369,6 +1369,11 @@ rspamd_dkim_check (rspamd_dkim_context_t *ctx, rspamd_dkim_key_t *key, struct wo
                                        headers_end = p + 1;
                                        break;
                                }
+                               else if (got_lf) {
+                                       /* \n\r\n */
+                                       headers_end = p + 1;
+                                       break;
+                               }
                                else {
                                        /* Set got crlf flag */
                                        got_crlf = TRUE;