mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-24 22:58:50 +01:00
Correct the fix to bug 22629 to permit trailing non-garbage
This change makes it so that we can decompress concatenated zstd outputs.
This commit is contained in:
parent
94a1b8b66c
commit
eb632afb17
1 changed files with 1 additions and 7 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue