summaryrefslogtreecommitdiff
path: root/src/or/consdiffmgr.c
diff options
context:
space:
mode:
authorSebastian Hahn <sebastian@torproject.org>2017-04-26 08:45:38 +0200
committerSebastian Hahn <sebastian@torproject.org>2017-04-26 08:45:38 +0200
commitee478bdf385b052783c2edfb1b21dc500cf0d9d5 (patch)
tree8af7979fe08f9dd6b3dd5ac3db240a875368af3c /src/or/consdiffmgr.c
parent2655a72d893a784bf9771a4b480efddd9417e4c0 (diff)
downloadtor-ee478bdf385b052783c2edfb1b21dc500cf0d9d5.tar.gz
tor-ee478bdf385b052783c2edfb1b21dc500cf0d9d5.zip
Fix coverity cid 1405510
This is a false positive, but let's appease coverity.
Diffstat (limited to 'src/or/consdiffmgr.c')
-rw-r--r--src/or/consdiffmgr.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/or/consdiffmgr.c b/src/or/consdiffmgr.c
index 59d0f28f51..a57edf98fc 100644
--- a/src/or/consdiffmgr.c
+++ b/src/or/consdiffmgr.c
@@ -666,6 +666,10 @@ consdiffmgr_validate(void)
if (r < 0)
continue;
+ // Deconfuse coverity about the possibility of sha3_received being
+ // uninitialized
+ tor_assert(r <= 0);
+
if (fast_memneq(sha3_received, sha3_expected, DIGEST256_LEN)) {
problems = 1;
consensus_cache_entry_mark_for_removal(obj);