aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-05-26 19:17:42 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-05-26 19:17:42 +0100
commit170d9c1b53f2d7f474fd99883c9ad8db5b1e261a (patch)
tree5f827a85d811cfa3ee7a96687c46e28fcbe0f1dc /src
parent6ddb09bcb717d87da029af2598a0c1a98b60b0d5 (diff)
downloadrspamd-170d9c1b53f2d7f474fd99883c9ad8db5b1e261a.tar.gz
rspamd-170d9c1b53f2d7f474fd99883c9ad8db5b1e261a.zip
[CritFix] Paese the last character in DKIM signature correctly
Diffstat (limited to 'src')
-rw-r--r--src/libserver/dkim.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libserver/dkim.c b/src/libserver/dkim.c
index 582c5ff07..cbb687454 100644
--- a/src/libserver/dkim.c
+++ b/src/libserver/dkim.c
@@ -903,7 +903,7 @@ rspamd_create_dkim_context (const gchar *sig,
}
else if (p == end) {
if (param == DKIM_PARAM_UNKNOWN ||
- !parser_funcs[param](ctx, c, p - c + 1, err)) {
+ !parser_funcs[param](ctx, c, p - c, err)) {
state = DKIM_STATE_ERROR;
}
else {