]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix a false-positive in coverity scan with an assertion
authorNick Mathewson <nickm@torproject.org>
Tue, 1 Sep 2015 13:50:33 +0000 (09:50 -0400)
committerNick Mathewson <nickm@torproject.org>
Tue, 1 Sep 2015 13:50:33 +0000 (09:50 -0400)
CID 1301373

src/or/routerkeys.c

index 1bf09515c89471a65c99e74131cc0f53348867c3..50659fcb694576c6cae7b7238465e83b8bb1b3bc 100644 (file)
@@ -295,6 +295,7 @@ ed_key_init_from_file(const char *fname, uint32_t flags,
     if (rv == 0) {
       have_secret = 1;
       loaded_secret_fname = secret_fname;
+      tor_assert(got_tag);
     } else {
       if (errno != ENOENT && norepair) {
         tor_log(severity, LD_OR, "Unable to read %s: %s", secret_fname,