aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-09-26 13:42:44 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-09-26 13:42:44 +0100
commit3efb9e2b9d11bfa13c43816ff0e626902d645e85 (patch)
treeed66c72bf28a48b6f9989da0210b9a2819af78e9
parent3fe38b276993ea34dd762ea95d5b56343081f3e7 (diff)
downloadrspamd-3efb9e2b9d11bfa13c43816ff0e626902d645e85.tar.gz
rspamd-3efb9e2b9d11bfa13c43816ff0e626902d645e85.zip
[Fix] Another fix in DKIM canonicalization
-rw-r--r--src/libserver/dkim.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libserver/dkim.c b/src/libserver/dkim.c
index cc11e5074..2d968bd0f 100644
--- a/src/libserver/dkim.c
+++ b/src/libserver/dkim.c
@@ -1423,16 +1423,16 @@ rspamd_dkim_skip_empty_lines (const gchar *start, const gchar *end,
break;
case got_crlf:
if (p > start + 2) {
- if (*(p - 3) == '\r') {
+ if (*(p - 2) == '\r') {
p -= 2;
state = got_cr;
}
- else if (*(p - 3) == '\n') {
+ else if (*(p - 2) == '\n') {
p -= 2;
state = got_lf;
}
- else if (type == DKIM_CANON_RELAXED && (*(p - 3) == ' ' ||
- *(p - 3) == '\t')) {
+ else if (type == DKIM_CANON_RELAXED && (*(p - 2) == ' ' ||
+ *(p - 2) == '\t')) {
skip = 2;
state = test_spaces;
}