From 91bac90310c41722d8a50ca9adf9006778f4d575 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Fri, 1 Feb 2008 05:27:12 +0000 Subject: r17863@catbus: nickm | 2008-02-01 00:27:07 -0500 Bugfix from weasel: possible fix for 593: make connection_write_to_buf("") work when using zlib compression. svn:r13347 --- src/or/directory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/or/directory.c') diff --git a/src/or/directory.c b/src/or/directory.c index c64f290c0..0a7c562fd 100644 --- a/src/or/directory.c +++ b/src/or/directory.c @@ -2385,7 +2385,7 @@ directory_handle_command_get(dir_connection_t *conn, const char *headers, estimated_len += body_len; SMARTLIST_FOREACH(items, const char *, item, { size_t ln = strlen(item); - if (compressed ) { + if (compressed) { estimated_len += ln/2; } else { body_len += ln; estimated_len += ln; -- cgit v1.2.3