mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-25 07:07:52 +01:00
Do not try to uncompress an empty spool
This commit is contained in:
parent
460b923026
commit
d3279d4304
1 changed files with 1 additions and 1 deletions
|
@ -4081,7 +4081,7 @@ handle_get_current_consensus(dir_connection_t *conn,
|
||||||
vary_header,
|
vary_header,
|
||||||
smartlist_len(conn->spool) == 1 ? lifetime : 0);
|
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,
|
conn->compress_state = tor_compress_new(0, compression_used,
|
||||||
HIGH_COMPRESSION);
|
HIGH_COMPRESSION);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue