From ee478bdf385b052783c2edfb1b21dc500cf0d9d5 Mon Sep 17 00:00:00 2001 From: Sebastian Hahn Date: Wed, 26 Apr 2017 08:45:38 +0200 Subject: Fix coverity cid 1405510 This is a false positive, but let's appease coverity. --- src/or/consdiffmgr.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') 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); -- cgit v1.2.3-54-g00ecf