]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix a confusing comment about tie-breaking in compute_routerstatus_consensus()
authorteor <teor2345@gmail.com>
Tue, 21 Nov 2017 15:27:28 +0000 (02:27 +1100)
committerteor <teor2345@gmail.com>
Tue, 21 Nov 2017 15:27:28 +0000 (02:27 +1100)
Closes bug 24372.

src/or/dirvote.c

index 6b806879a9a35e012d17f3611e32c7cef4b682a9..fa896530401c354641bdab4b116c9d2bbae23fc8 100644 (file)
@@ -519,7 +519,7 @@ compute_routerstatus_consensus(smartlist_t *votes, int consensus_method,
 
   /* compare_vote_rs_() sorts the items by identity digest (all the same),
    * then by SD digest.  That way, if we have a tie that the published_on
-   * date cannot tie, we use the descriptor with the smaller digest.
+   * date cannot break, we use the descriptor with the smaller digest.
    */
   smartlist_sort(votes, compare_vote_rs_);
   SMARTLIST_FOREACH_BEGIN(votes, vote_routerstatus_t *, rs) {