From: Roger Dingledine Date: Mon, 27 Sep 2004 07:28:48 +0000 (+0000) Subject: fix another bug with cached compressed directories X-Git-Tag: tor-0.0.9pre1~21 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9f9f0e5eddd6a7b04f7cf1b55c66ed4651641b5d;p=thirdparty%2Ftor.git fix another bug with cached compressed directories still not working svn:r2383 --- diff --git a/src/or/dirserv.c b/src/or/dirserv.c index d72a698aa1..f77065eeab 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");