diff options
author | Alexander Færøy <ahf@torproject.org> | 2017-05-15 20:32:26 +0200 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-05-15 17:21:55 -0400 |
commit | 9e3f3041139f60c5d109aff345bc560490329b10 (patch) | |
tree | 88e934c4090bf8b0e66acc18b16d0063a13ca11f /src/or/directory.c | |
parent | 65d940844887edb3285a35dd535f2fa68b873650 (diff) | |
download | tor-9e3f3041139f60c5d109aff345bc560490329b10.tar.gz tor-9e3f3041139f60c5d109aff345bc560490329b10.zip |
Fix dir_handle_get/... test-cases for prop#278 support.
See: https://bugs.torproject.org/21667
Diffstat (limited to 'src/or/directory.c')
-rw-r--r-- | src/or/directory.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/or/directory.c b/src/or/directory.c index cf6f0db977..d2ac42c3ff 100644 --- a/src/or/directory.c +++ b/src/or/directory.c @@ -3887,12 +3887,6 @@ handle_get_current_consensus(dir_connection_t *conn, lifetime = (have_fresh_until && fresh_until > now) ? fresh_until - now : 0; - if (!smartlist_len(conn->spool)) { /* we failed to create/cache cp */ - write_http_status_line(conn, 503, "Network status object unavailable"); - geoip_note_ns_response(GEOIP_REJECT_UNAVAILABLE); - goto done; - } - size_t size_guess = 0; int n_expired = 0; dirserv_spool_remove_missing_and_guess_size(conn, if_modified_since, |