aboutsummaryrefslogtreecommitdiff
path: root/src/or/dirserv.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2004-09-21 18:09:38 +0000
committerNick Mathewson <nickm@torproject.org>2004-09-21 18:09:38 +0000
commitc20b24c952e4018ac738c633c2fc821bbc80958d (patch)
tree7a69e85f696e615ba9cfa24990472649f6143d22 /src/or/dirserv.c
parentd977677aa812befe8f8674d78a0b0bd26a74c451 (diff)
downloadtor-c20b24c952e4018ac738c633c2fc821bbc80958d.tar
tor-c20b24c952e4018ac738c633c2fc821bbc80958d.tar.gz
clean up/bugfix deflate logic and log messages
svn:r2359
Diffstat (limited to 'src/or/dirserv.c')
-rw-r--r--src/or/dirserv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/dirserv.c b/src/or/dirserv.c
index dc7804b3b..0d9d433a1 100644
--- a/src/or/dirserv.c
+++ b/src/or/dirserv.c
@@ -678,8 +678,8 @@ size_t dirserv_get_directory(const char **directory, int deflate)
} else {
log(LOG_INFO,"Directory still clean, reusing.");
}
- *directory = deflate ? the_directory : the_directory_z;
- return deflate ? the_directory_len : the_directory_z_len;
+ *directory = deflate ? the_directory_z : the_directory;
+ return deflate ? the_directory_z_len : the_directory_len;
}
/**