]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Another fix of the remaining octets logic
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 3 Sep 2021 12:31:32 +0000 (13:31 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 3 Sep 2021 12:31:32 +0000 (13:31 +0100)
src/libserver/dkim.c

index f71fd488b8786a1b937c95d2f1477b92b2b9e541..01bea2d56dec6c2e6a075970dab52b630e73e674 100644 (file)
@@ -2037,7 +2037,7 @@ rspamd_dkim_canonize_body (struct rspamd_dkim_common_ctx *ctx,
        gboolean sign)
 {
        const gchar *p;
-       gssize remain = ctx->len ? ctx->len : -1;
+       gssize remain = ctx->len ? ctx->len : G_MAXSSIZE;
        guint total_len = end - start;
        gboolean need_crlf = FALSE;