mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 13:13:44 +01:00
Fix coverity cid 1405510
This is a false positive, but let's appease coverity.
This commit is contained in:
parent
2655a72d89
commit
ee478bdf38
@ -666,6 +666,10 @@ consdiffmgr_validate(void)
|
|||||||
if (r < 0)
|
if (r < 0)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
// Deconfuse coverity about the possibility of sha3_received being
|
||||||
|
// uninitialized
|
||||||
|
tor_assert(r <= 0);
|
||||||
|
|
||||||
if (fast_memneq(sha3_received, sha3_expected, DIGEST256_LEN)) {
|
if (fast_memneq(sha3_received, sha3_expected, DIGEST256_LEN)) {
|
||||||
problems = 1;
|
problems = 1;
|
||||||
consensus_cache_entry_mark_for_removal(obj);
|
consensus_cache_entry_mark_for_removal(obj);
|
||||||
|
Loading…
Reference in New Issue
Block a user