Browse Source

Fix a false-positive in coverity scan with an assertion

CID 1301373
Nick Mathewson 8 years ago
parent
commit
b977a570c4
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/or/routerkeys.c

+ 1 - 0
src/or/routerkeys.c

@@ -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,