diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2022-05-08 12:19:47 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rspamd.com> | 2022-05-08 12:19:47 +0100 |
commit | d0d9673d38dbb2e8aa93ae60bbbc9193e9646902 (patch) | |
tree | c48e272ee9642889d504624fabe57d6a73332341 | |
parent | c6a5be1c1d08b4e4948a215a27c6406b51f48c8a (diff) | |
download | rspamd-d0d9673d38dbb2e8aa93ae60bbbc9193e9646902.tar.gz rspamd-d0d9673d38dbb2e8aa93ae60bbbc9193e9646902.zip |
[Fix] Zstd: Fix compression with the new Zstd API
Issue: #4140
-rw-r--r-- | src/libserver/cfg_utils.c | 2 |
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)) { |