commit 294d80044dab3c682f61b239c79be3c261bcd0f2 Author: Nick Mathewson nickm@torproject.org Date: Mon May 15 18:16:58 2017 -0400
remove a variable I missed --- src/or/directory.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/src/or/directory.c b/src/or/directory.c index 15f7491..d954c06 100644 --- a/src/or/directory.c +++ b/src/or/directory.c @@ -3958,7 +3958,6 @@ handle_get_current_consensus(dir_connection_t *conn, long lifetime = NETWORKSTATUS_CACHE_LIFETIME;
time_t now = time(NULL); - const char *want_fps = NULL; parsed_consensus_request_t req;
if (parse_consensus_request(&req, args) < 0) { @@ -4005,8 +4004,8 @@ handle_get_current_consensus(dir_connection_t *conn, goto done; }
- if (cached_consensus && want_fps && - !client_likes_consensus(cached_consensus, want_fps)) { + if (cached_consensus && req.want_fps && + !client_likes_consensus(cached_consensus, req.want_fps)) { write_http_status_line(conn, 404, "Consensus not signed by sufficient " "number of requested authorities"); geoip_note_ns_response(GEOIP_REJECT_NOT_ENOUGH_SIGS);
tor-commits@lists.torproject.org