diff options
author | Nick Mathewson <nickm@torproject.org> | 2007-08-14 00:07:29 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2007-08-14 00:07:29 +0000 |
commit | 7113ab8f90682942adb093eb9084ea84bd6fd621 (patch) | |
tree | 146dc73bff51d2a00d88ae8c6ade84369fd7ca39 /src/or | |
parent | b6c548094c19c9003b02f239e4c0575922c68e11 (diff) | |
download | tor-7113ab8f90682942adb093eb9084ea84bd6fd621.tar tor-7113ab8f90682942adb093eb9084ea84bd6fd621.tar.gz |
r14001@kushana: nickm | 2007-08-13 20:06:36 -0400
Check for *at least* as many signatures as required, not for *more* signatures than required.
svn:r11098
Diffstat (limited to 'src/or')
-rw-r--r-- | src/or/dirvote.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/or/dirvote.c b/src/or/dirvote.c index 1270fe729..887f0b96c 100644 --- a/src/or/dirvote.c +++ b/src/or/dirvote.c @@ -753,7 +753,12 @@ networkstatus_check_consensus_signature(networkstatus_vote_t *consensus) ++n_no_signature; }); - if (n_good > n_required) + log_notice(LD_DIR, + "%d unknown, %d missing key, %d good, %d bad, %d no signature," + "%d required", n_unknown, n_missing_key, n_good, n_bad, + n_no_signature, n_required); + + if (n_good >= n_required) return 0; else return -1; |