diff options
author | Nick Mathewson <nickm@torproject.org> | 2010-09-21 00:07:45 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2010-09-21 00:07:45 -0400 |
commit | 5a55662a6b38dd5c70a514bd8cb7e4b2e0df7e97 (patch) | |
tree | 669eaa8b75054e217f157ee9e0ebc7a05feaa1c8 /src/or | |
parent | fec297338f3b4fd5cba59ee1f7abeda8e19a24b8 (diff) | |
parent | 1411842933afba657599dd1cccbc61040dfe9b4b (diff) | |
download | tor-5a55662a6b38dd5c70a514bd8cb7e4b2e0df7e97.tar.gz tor-5a55662a6b38dd5c70a514bd8cb7e4b2e0df7e97.zip |
Merge branch 'bug1956'
Diffstat (limited to 'src/or')
-rw-r--r-- | src/or/networkstatus.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/or/networkstatus.c b/src/or/networkstatus.c index 9bb5546d97..1d8a20be11 100644 --- a/src/or/networkstatus.c +++ b/src/or/networkstatus.c @@ -482,6 +482,7 @@ networkstatus_check_consensus_signature(networkstatus_t *consensus, voter) { int good_here = 0; int bad_here = 0; + int unknown_here = 0; int missing_key_here = 0, dl_failed_key_here = 0; SMARTLIST_FOREACH_BEGIN(voter->sigs, document_signature_t *, sig) { if (!sig->good_signature && !sig->bad_signature && @@ -497,7 +498,7 @@ networkstatus_check_consensus_signature(networkstatus_t *consensus, if (!is_v3_auth) { smartlist_add(unrecognized, voter); - ++n_unknown; + ++unknown_here; continue; } else if (!cert || cert->expires < now) { smartlist_add(need_certs_from, voter); @@ -527,8 +528,11 @@ networkstatus_check_consensus_signature(networkstatus_t *consensus, ++n_missing_key; if (dl_failed_key_here) ++n_dl_failed_key; - } else + } else if (unknown_here) { + ++n_unknown; + } else { ++n_no_signature; + } } SMARTLIST_FOREACH_END(voter); /* Now see whether we're missing any voters entirely. */ |