commit eb632afb17aad58a23f3c8edce865ddf9a338f20
parent 94a1b8b66cb0e6d9a996210e8695a07d8ada95ac
Author: Nick Mathewson <nickm@torproject.org>
Date: Tue, 20 Jun 2017 10:24:22 -0400
Correct the fix to bug 22629 to permit trailing non-garbage
This change makes it so that we can decompress concatenated zstd
outputs.
Diffstat:
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/src/common/compress.c b/src/common/compress.c
@@ -150,13 +150,7 @@ tor_compress_impl(int compress,
method, compression_level, in_len);
goto err;
} else {
- if (in_len != 0) {
- log_fn(protocol_warn_level, LD_PROTOCOL,
- "Unexpected extra input while decompressing");
- log_debug(LD_GENERAL, "method: %d level: %d at len: %zd",
- method, compression_level, in_len);
- goto err;
- } else {
+ if (in_len == 0) {
goto done;
}
}