mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-25 15:10:48 +01:00
Check for best consensus when no consensusdiff was found.
This patch ensures that we use the current consensus in the case where no consensus diff was found or a consensus diff wasn't requested. See: https://bugs.torproject.org/21667
This commit is contained in:
parent
7591518d16
commit
ae33deb91d
1 changed files with 4 additions and 1 deletions
|
@ -3815,11 +3815,14 @@ handle_get_current_consensus(dir_connection_t *conn,
|
||||||
&compression_used);
|
&compression_used);
|
||||||
SMARTLIST_FOREACH(diff_from_digests, uint8_t *, d, tor_free(d));
|
SMARTLIST_FOREACH(diff_from_digests, uint8_t *, d, tor_free(d));
|
||||||
smartlist_free(diff_from_digests);
|
smartlist_free(diff_from_digests);
|
||||||
} else {
|
}
|
||||||
|
|
||||||
|
if (! cached_consensus) {
|
||||||
cached_consensus = find_best_consensus(flav,
|
cached_consensus = find_best_consensus(flav,
|
||||||
args->compression_supported,
|
args->compression_supported,
|
||||||
&compression_used);
|
&compression_used);
|
||||||
}
|
}
|
||||||
|
|
||||||
time_t fresh_until, valid_until;
|
time_t fresh_until, valid_until;
|
||||||
int have_fresh_until = 0, have_valid_until = 0;
|
int have_fresh_until = 0, have_valid_until = 0;
|
||||||
if (cached_consensus) {
|
if (cached_consensus) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue