[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] fix another bug with cached compressed directories
Update of /home/or/cvsroot/src/or
In directory moria.mit.edu:/home2/arma/work/onion/cvs/src/or
Modified Files:
dirserv.c
Log Message:
fix another bug with cached compressed directories
still not working
Index: dirserv.c
===================================================================
RCS file: /home/or/cvsroot/src/or/dirserv.c,v
retrieving revision 1.81
retrieving revision 1.82
diff -u -d -r1.81 -r1.82
--- dirserv.c 27 Sep 2004 06:57:16 -0000 1.81
+++ dirserv.c 27 Sep 2004 07:28:48 -0000 1.82
@@ -635,7 +635,6 @@
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 @@
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");