mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 04:13:28 +01:00
Do not BUG on missing sha3-as-signed field
This can happen if you've been running an earlier alpha on your relay. Instead, just ignore the entry.
This commit is contained in:
parent
e1d31f2a2f
commit
6beb7028d8
@ -858,9 +858,12 @@ consdiffmgr_rescan_flavor_(consensus_flavor_t flavor)
|
|||||||
continue; // LCOV_EXCL_LINE
|
continue; // LCOV_EXCL_LINE
|
||||||
|
|
||||||
uint8_t this_sha3[DIGEST256_LEN];
|
uint8_t this_sha3[DIGEST256_LEN];
|
||||||
if (BUG(cdm_entry_get_sha3_value(this_sha3, c,
|
if (cdm_entry_get_sha3_value(this_sha3, c,
|
||||||
LABEL_SHA3_DIGEST_AS_SIGNED)<0))
|
LABEL_SHA3_DIGEST_AS_SIGNED)<0) {
|
||||||
continue; // LCOV_EXCL_LINE
|
// Not actually a bug, since we might be running with a directory
|
||||||
|
// with stale files from before the #22143 fixes.
|
||||||
|
continue;
|
||||||
|
}
|
||||||
if (cdm_diff_ht_check_and_note_pending(flavor,
|
if (cdm_diff_ht_check_and_note_pending(flavor,
|
||||||
this_sha3, most_recent_sha3)) {
|
this_sha3, most_recent_sha3)) {
|
||||||
// This is already pending, or we encountered an error.
|
// This is already pending, or we encountered an error.
|
||||||
|
Loading…
Reference in New Issue
Block a user