diff options
author | Nick Mathewson <nickm@torproject.org> | 2006-06-29 11:04:42 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2006-06-29 11:04:42 +0000 |
commit | 4b49d298ebabbf2bbdac5d90f0a4c575b2efe897 (patch) | |
tree | cc84790d9924ed20cc12ad9e7fef83c91e583ec5 /src/or | |
parent | c22c7b96f52787c0ca26c0021a594dc9f6303a18 (diff) | |
download | tor-4b49d298ebabbf2bbdac5d90f0a4c575b2efe897.tar.gz tor-4b49d298ebabbf2bbdac5d90f0a4c575b2efe897.zip |
complete_only == !allow_partial. This enables useful use of partial desc downloads. Backport candidate
svn:r6700
Diffstat (limited to 'src/or')
-rw-r--r-- | src/or/directory.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/directory.c b/src/or/directory.c index fcee412173..2e3a04fd08 100644 --- a/src/or/directory.c +++ b/src/or/directory.c @@ -915,12 +915,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) { |