commit cee9e2c: [Minor] Fix length argument

Vsevolod Stakhov vsevolod at highsecure.ru
Thu Feb 13 12:56:08 UTC 2020


Author: Vsevolod Stakhov
Date: 2020-02-13 12:55:04 +0000
URL: https://github.com/rspamd/rspamd/commit/cee9e2c5c7c94f1d1d1c80e5b59ecb24713bab73 (HEAD -> master)

[Minor] Fix length argument

---
 src/libserver/dkim.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/libserver/dkim.c b/src/libserver/dkim.c
index fb98c3d63..1bd7ec3d6 100644
--- a/src/libserver/dkim.c
+++ b/src/libserver/dkim.c
@@ -2601,7 +2601,7 @@ rspamd_dkim_check (rspamd_dkim_context_t *ctx,
 					"body length %d->%d; headers length %d; d=%s; s=%s",
 					rspamd_dkim_type_to_string (ctx->common.type),
 					(gint)dlen, raw_digest,
-					(gint)dlen, ctx->b,
+					(gint)ctx->blen, ctx->b,
 					(gint)(body_end - body_start), ctx->common.body_canonicalised,
 					ctx->common.headers_canonicalised,
 					ctx->domain, ctx->selector);
@@ -2615,7 +2615,7 @@ rspamd_dkim_check (rspamd_dkim_context_t *ctx,
 					"body length %d->%d; headers length %d; d=%s; s=%s",
 					rspamd_dkim_type_to_string (ctx->common.type),
 					(gint)dlen, raw_digest,
-					(gint)dlen, ctx->b,
+					(gint)ctx->blen, ctx->b,
 					(gint)(body_end - body_start), ctx->common.body_canonicalised,
 					ctx->common.headers_canonicalised,
 					ctx->domain, ctx->selector);
@@ -2632,7 +2632,7 @@ rspamd_dkim_check (rspamd_dkim_context_t *ctx,
 					"body length %d->%d; headers length %d; d=%s; s=%s",
 					rspamd_dkim_type_to_string (ctx->common.type),
 					(gint)dlen, raw_digest,
-					(gint)dlen, ctx->b,
+					(gint)ctx->blen, ctx->b,
 					(gint)(body_end - body_start), ctx->common.body_canonicalised,
 					ctx->common.headers_canonicalised,
 					ctx->domain, ctx->selector);


More information about the Commits mailing list