diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-09-23 11:12:10 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-09-23 11:12:10 +0100 |
commit | f5f509efb83b728dd54594d3259a10c5fcf695ee (patch) | |
tree | 98d76e3efc403340ef740ba0edbc2199577a67e5 /src/libserver/dkim.c | |
parent | b0d3ec5f41c220a755e2f394b60481a9a5cb2ff1 (diff) | |
download | rspamd-f5f509efb83b728dd54594d3259a10c5fcf695ee.tar.gz rspamd-f5f509efb83b728dd54594d3259a10c5fcf695ee.zip |
[Fix] Fix DKIM calculations
Diffstat (limited to 'src/libserver/dkim.c')
-rw-r--r-- | src/libserver/dkim.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libserver/dkim.c b/src/libserver/dkim.c index d545a78e4..f017a2b24 100644 --- a/src/libserver/dkim.c +++ b/src/libserver/dkim.c @@ -1360,7 +1360,7 @@ rspamd_dkim_skip_empty_lines (const gchar *start, const gchar *end, } break; case got_cr: - if (p > start - 1) { + if (p > start + 1) { if (*(p - 1) == '\r') { p --; state = got_cr; @@ -1393,7 +1393,7 @@ rspamd_dkim_skip_empty_lines (const gchar *start, const gchar *end, } break; case got_lf: - if (p > start - 1) { + if (p > start + 1) { if (*(p - 1) == '\r') { state = got_crlf; } @@ -1418,7 +1418,7 @@ rspamd_dkim_skip_empty_lines (const gchar *start, const gchar *end, } break; case got_crlf: - if (p > start - 2) { + if (p > start + 2) { if (*(p - 3) == '\r') { p -= 2; state = got_cr; @@ -1445,7 +1445,7 @@ rspamd_dkim_skip_empty_lines (const gchar *start, const gchar *end, case test_spaces: t = p - skip; - while (t > start - 2 && *t == ' ') { + while (t > start + 2 && *t == ' ') { t --; } |