diff options
author | Sebastian Hahn <sebastian@torproject.org> | 2017-04-26 08:45:38 +0200 |
---|---|---|
committer | Sebastian Hahn <sebastian@torproject.org> | 2017-04-26 08:45:38 +0200 |
commit | ee478bdf385b052783c2edfb1b21dc500cf0d9d5 (patch) | |
tree | 8af7979fe08f9dd6b3dd5ac3db240a875368af3c /src/or/consdiffmgr.c | |
parent | 2655a72d893a784bf9771a4b480efddd9417e4c0 (diff) | |
download | tor-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.c | 4 |
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); |