summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/common/compress.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/common/compress.c b/src/common/compress.c
index e65894d9d2..c6c3897989 100644
--- 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;
}
}