mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 04:13:28 +01:00
d12b16614d
Cached_dir_t is a somewhat "legacy" kind of storage when used for consensus documents, and it appears that there are cases when changing our settings causes us to stop updating those entries. This can cause trouble, as @arma found out in #40375, where he changed his settings around, and consensus diff application got messed up: consensus diffs were being _requested_ based on the latest consensus, but were being (incorrectly) applied to a consensus that was no longer the latest one. This patch is a minimal fix for backporting purposes: it has Tor do the same search when applying consensus diffs as we use to request them. This should be sufficient for correct behavior. There's a similar case in GETINFO handling; I've fixed that too. Fixes #40375; bugfix on 0.3.1.1-alpha.
6 lines
299 B
Plaintext
6 lines
299 B
Plaintext
o Minor bugfixes (consensus handling):
|
|
- Avoid a set of bugs that could be caused by inconsistently preferring
|
|
an out-of-date consensus stored in a stale directory cache over
|
|
a more recent one stored on disk as the latest consensus.
|
|
Fixes bug 40375; bugfix on 0.3.1.1-alpha.
|