diff options
author | Nick Mathewson <nickm@torproject.org> | 2017-05-15 18:16:58 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-05-15 18:16:58 -0400 |
commit | 294d80044dab3c682f61b239c79be3c261bcd0f2 (patch) | |
tree | 1c2e07e48462b4ff665e26009be4fad0658aa82e /src/or/directory.c | |
parent | d3279d4304f5ebae0d1612e6c16d20e27b8e8790 (diff) | |
download | tor-294d80044dab3c682f61b239c79be3c261bcd0f2.tar.gz tor-294d80044dab3c682f61b239c79be3c261bcd0f2.zip |
remove a variable I missed
Diffstat (limited to 'src/or/directory.c')
-rw-r--r-- | src/or/directory.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/or/directory.c b/src/or/directory.c index 15f7491fc6..d954c06262 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); |