]> source.dussan.org Git - rspamd.git/commitdiff
[CritFix] Paese the last character in DKIM signature correctly
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 26 May 2017 18:17:42 +0000 (19:17 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 26 May 2017 18:17:42 +0000 (19:17 +0100)
src/libserver/dkim.c

index 582c5ff07bf044d6720fb646162a309d93b112e4..cbb6874546101f7cda7b385eb22ed6007d4c774d 100644 (file)
@@ -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 {