summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorteor <teor2345@gmail.com>2017-06-16 09:46:46 +1000
committerteor <teor2345@gmail.com>2017-06-16 09:46:46 +1000
commit617e1da63655a90dba499e8fe11263d3331aacf7 (patch)
treeecd9fbc9d57ef3b2d5df036ea52f77a787ac9a39 /src/common
parent7605bd528e64898d8d62fd89f414185f465d9999 (diff)
downloadtor-617e1da63655a90dba499e8fe11263d3331aacf7.tar.gz
tor-617e1da63655a90dba499e8fe11263d3331aacf7.zip
Remove a redundant conditional in tor_zstd_compress_process
Part of #22502
Diffstat (limited to 'src/common')
-rw-r--r--src/common/compress_zstd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/compress_zstd.c b/src/common/compress_zstd.c
index 9143615d4d..11fcf86644 100644
--- a/src/common/compress_zstd.c
+++ b/src/common/compress_zstd.c
@@ -321,7 +321,7 @@ tor_zstd_compress_process(tor_zstd_compress_state_t *state,
if (!finish) {
// We're not done with the input, so no need to flush.
return TOR_COMPRESS_OK;
- } else if (state->compress && finish) {
+ } else if (state->compress) {
retval = ZSTD_endStream(state->u.compress_stream, &output);
*out = (char *)output.dst + output.pos;