aboutsummaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-06-20 20:27:48 -0400
committerNick Mathewson <nickm@torproject.org>2017-06-20 20:27:48 -0400
commite51e7bd38b758d3f71a2e31184dde3771f897af8 (patch)
tree3dfbb953c92013f8818ab1a066f916ec8dc1b0c6 /src/common
parentc999e84436a5f7ba1964abd4ae502212f0995bcb (diff)
parent782eb02b79363bf8ed609495d516bc59972f4352 (diff)
downloadtor-e51e7bd38b758d3f71a2e31184dde3771f897af8.tar.gz
tor-e51e7bd38b758d3f71a2e31184dde3771f897af8.zip
Merge branch 'bug22502_redux_031' into maint-0.3.1
Diffstat (limited to 'src/common')
-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 46aa1d52ba..7926faaa60 100644
--- a/src/common/compress.c
+++ b/src/common/compress.c
@@ -150,13 +150,7 @@ tor_compress_impl(int compress,
method, compression_level, (unsigned long)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: %lu",
- method, compression_level, (unsigned long)in_len);
- goto err;
- } else {
+ if (in_len == 0) {
goto done;
}
}