aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2015-09-01 09:50:33 -0400
committerNick Mathewson <nickm@torproject.org>2015-09-01 09:50:33 -0400
commitb977a570c4fea136910fb9f41fd57b9ba3e34699 (patch)
treef1e02c8d0a893f0c9acc1ea94b9e8567c836a021
parentf64ef65b9d3297d2b039f1bec71192e0b73cd83b (diff)
downloadtor-b977a570c4fea136910fb9f41fd57b9ba3e34699.tar.gz
tor-b977a570c4fea136910fb9f41fd57b9ba3e34699.zip
Fix a false-positive in coverity scan with an assertion
CID 1301373
-rw-r--r--src/or/routerkeys.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/routerkeys.c b/src/or/routerkeys.c
index 1bf09515c8..50659fcb69 100644
--- a/src/or/routerkeys.c
+++ b/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,