commit d3279d4304f5ebae0d1612e6c16d20e27b8e8790 Author: Nick Mathewson nickm@torproject.org Date: Mon May 15 18:13:38 2017 -0400
Do not try to uncompress an empty spool --- src/or/directory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/or/directory.c b/src/or/directory.c index aca3030..15f7491 100644 --- a/src/or/directory.c +++ b/src/or/directory.c @@ -4081,7 +4081,7 @@ handle_get_current_consensus(dir_connection_t *conn, vary_header, smartlist_len(conn->spool) == 1 ? lifetime : 0);
- if (compress_method == NO_METHOD) + if (compress_method == NO_METHOD && smartlist_len(conn->spool)) conn->compress_state = tor_compress_new(0, compression_used, HIGH_COMPRESSION);
tor-commits@lists.torproject.org