aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2004-09-27 07:28:48 +0000
committerRoger Dingledine <arma@torproject.org>2004-09-27 07:28:48 +0000
commit9f9f0e5eddd6a7b04f7cf1b55c66ed4651641b5d (patch)
treeb432fc015acf92bf3cf71ba91e0e2142bb62ab28
parentd0edf8e8b50528f2d36c6949b5b47dd31300e67b (diff)
downloadtor-9f9f0e5eddd6a7b04f7cf1b55c66ed4651641b5d.tar
tor-9f9f0e5eddd6a7b04f7cf1b55c66ed4651641b5d.tar.gz
fix another bug with cached compressed directories
still not working svn:r2383
-rw-r--r--src/or/dirserv.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/or/dirserv.c b/src/or/dirserv.c
index d72a698aa..f77065eea 100644
--- a/src/or/dirserv.c
+++ b/src/or/dirserv.c
@@ -635,7 +635,6 @@ static time_t cached_directory_published = 0;
void dirserv_set_cached_directory(const char *directory, time_t when)
{
time_t now;
- size_t z_len;
char filename[512];
tor_assert(!options.AuthoritativeDir);
now = time(NULL);
@@ -650,7 +649,7 @@ void dirserv_set_cached_directory(const char *directory, time_t when)
cached_directory = tor_strdup(directory);
cached_directory_len = strlen(cached_directory);
tor_free(cached_directory_z);
- if (tor_gzip_compress(&cached_directory_z, &z_len,
+ if (tor_gzip_compress(&cached_directory_z, &cached_directory_z_len,
cached_directory, cached_directory_len,
ZLIB_METHOD)) {
log_fn(LOG_WARN,"Error compressing cached directory");