aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2022-05-08 12:19:47 +0100
committerVsevolod Stakhov <vsevolod@rspamd.com>2022-05-08 12:19:47 +0100
commitd0d9673d38dbb2e8aa93ae60bbbc9193e9646902 (patch)
treec48e272ee9642889d504624fabe57d6a73332341
parentc6a5be1c1d08b4e4948a215a27c6406b51f48c8a (diff)
downloadrspamd-d0d9673d38dbb2e8aa93ae60bbbc9193e9646902.tar.gz
rspamd-d0d9673d38dbb2e8aa93ae60bbbc9193e9646902.zip
[Fix] Zstd: Fix compression with the new Zstd API
Issue: #4140
-rw-r--r--src/libserver/cfg_utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libserver/cfg_utils.c b/src/libserver/cfg_utils.c
index c9fa31d21..5943ffdee 100644
--- a/src/libserver/cfg_utils.c
+++ b/src/libserver/cfg_utils.c
@@ -2890,7 +2890,7 @@ rspamd_libs_reset_compression (struct rspamd_external_libs_ctx *ctx)
/* Dictionary will be reused automatically if specified */
r = ZSTD_CCtx_reset (ctx->out_zstream, ZSTD_reset_session_only);
if (!ZSTD_isError (r)) {
- r = ZSTD_CCtx_setPledgedSrcSize (ctx->out_zstream, 0);
+ r = ZSTD_CCtx_setPledgedSrcSize (ctx->out_zstream, ZSTD_CONTENTSIZE_UNKNOWN);
}
if (ZSTD_isError (r)) {