aboutsummaryrefslogtreecommitdiff
path: root/src/or/dirvote.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2007-10-09 17:40:23 +0000
committerNick Mathewson <nickm@torproject.org>2007-10-09 17:40:23 +0000
commitf1d4e3477b9860092f2559513d1cf5319dc2098c (patch)
tree295907778b04133d40c8c0fcb5c174ab9abb6406 /src/or/dirvote.c
parentc7981e669f15eedd4bef64cd6bb99b7a0bd2df4e (diff)
downloadtor-f1d4e3477b9860092f2559513d1cf5319dc2098c.tar.gz
tor-f1d4e3477b9860092f2559513d1cf5319dc2098c.zip
Bugfixes in fetching certificates for a consensus: fetch tor/keys/fp/X, not tor/keys/X. Also, count signatures where no certificate is known as "missing a certificate" not as "unknown authority."
svn:r11805
Diffstat (limited to 'src/or/dirvote.c')
-rw-r--r--src/or/dirvote.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/or/dirvote.c b/src/or/dirvote.c
index 83360588cb..1e19f65534 100644
--- a/src/or/dirvote.c
+++ b/src/or/dirvote.c
@@ -725,11 +725,13 @@ networkstatus_check_consensus_signature(networkstatus_vote_t *consensus,
authority_cert_get_by_digests(voter->identity_digest,
voter->signing_key_digest);
if (! cert) {
- if (!trusteddirserver_get_by_v3_auth_digest(voter->identity_digest))
+ if (!trusteddirserver_get_by_v3_auth_digest(voter->identity_digest)) {
smartlist_add(unrecognized, voter);
- else
+ ++n_unknown;
+ } else {
smartlist_add(need_certs_from, voter);
- ++n_unknown;
+ ++n_missing_key;
+ }
continue;
}
if (networkstatus_check_voter_signature(consensus, voter, cert) < 0) {