diff options
author | Nick Mathewson <nickm@torproject.org> | 2008-02-01 05:27:12 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2008-02-01 05:27:12 +0000 |
commit | 91bac90310c41722d8a50ca9adf9006778f4d575 (patch) | |
tree | 7ed62dbdc2aabaadc1af415420b08c28a95841fb /src/or/connection.c | |
parent | f013fb5e3177e20b65f1220a35e82f577a138a3b (diff) | |
download | tor-91bac90310c41722d8a50ca9adf9006778f4d575.tar.gz tor-91bac90310c41722d8a50ca9adf9006778f4d575.zip |
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
Diffstat (limited to 'src/or/connection.c')
-rw-r--r-- | src/or/connection.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/connection.c b/src/or/connection.c index e64a623ff1..6564b2d504 100644 --- a/src/or/connection.c +++ b/src/or/connection.c @@ -2250,7 +2250,7 @@ _connection_write_to_buf_impl(const char *string, size_t len, /* XXXX This function really needs to return -1 on failure. */ int r; size_t old_datalen; - if (!len) + if (!len && !(zlib<0)) return; /* if it's marked for close, only allow write if we mean to flush it */ if (conn->marked_for_close && !conn->hold_open_until_flushed) |