fix another bug with cached compressed directories

still not working


svn:r2383
This commit is contained in:
Roger Dingledine
2004-09-27 07:28:48 +00:00
parent 8659e0daf8
commit ef4754074e
+1 -2
View File
@@ -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");