summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2006-07-03 01:18:17 +0000
committerNick Mathewson <nickm@torproject.org>2006-07-03 01:18:17 +0000
commit4ea26976ff486ac4966d74ed781d7685e55b6d47 (patch)
tree9ab89bcc6681d92c300484cdaaf2f0eb1e23b64e
parent95821e6c9d82229cee1dd0017ad7b46e2418e1f7 (diff)
downloadtor-4ea26976ff486ac4966d74ed781d7685e55b6d47.tar.gz
tor-4ea26976ff486ac4966d74ed781d7685e55b6d47.zip
Backport fix to allow clients and mirrors to learn directory info from descriptor downloads that get cut off partway through.
svn:r6708
-rw-r--r--src/or/directory.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/directory.c b/src/or/directory.c
index 98ffeae320..3a3f3a0012 100644
--- a/src/or/directory.c
+++ b/src/or/directory.c
@@ -913,12 +913,12 @@ connection_dir_client_reached_eof(connection_t *conn)
/* Try declared compression first if we can. */
if (compression > 0)
tor_gzip_uncompress(&new_body, &new_len, body, body_len, compression,
- allow_partial, LOG_PROTOCOL_WARN);
+ !allow_partial, LOG_PROTOCOL_WARN);
/* Okay, if that didn't work, and we think that it was compressed
* differently, try that. */
if (!new_body && guessed > 0 && compression != guessed)
tor_gzip_uncompress(&new_body, &new_len, body, body_len, guessed,
- allow_partial, LOG_PROTOCOL_WARN);
+ !allow_partial, LOG_PROTOCOL_WARN);
/* If we're pretty sure that we have a compressed directory, and
* we didn't manage to uncompress it, then warn and bail. */
if (!plausible && !new_body) {