aboutsummaryrefslogtreecommitdiff
path: root/src/or/dirvote.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2008-01-09 01:06:19 +0000
committerRoger Dingledine <arma@torproject.org>2008-01-09 01:06:19 +0000
commita7eef34a0379c81b9a027d5de115a8f52c90de6e (patch)
tree8fa708d0904c0f318e2e21b9876c6adb958be4e2 /src/or/dirvote.c
parent7d3bf1608b74c674f315b94e4e0d96ed3eb4522e (diff)
downloadtor-a7eef34a0379c81b9a027d5de115a8f52c90de6e.tar
tor-a7eef34a0379c81b9a027d5de115a8f52c90de6e.tar.gz
Jan 08 19:55:01.865 [notice] Added -2 pending signatures while building consensus.
svn:r13080
Diffstat (limited to 'src/or/dirvote.c')
-rw-r--r--src/or/dirvote.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/or/dirvote.c b/src/or/dirvote.c
index 7a8f1adcb..a4b749273 100644
--- a/src/or/dirvote.c
+++ b/src/or/dirvote.c
@@ -1711,7 +1711,9 @@ dirvote_compute_consensus(void)
SMARTLIST_FOREACH(pending_consensus_signature_list, char *, sig,
{
const char *msg = NULL;
- n_sigs += dirvote_add_signatures_to_pending_consensus(sig, &msg);
+ int r = dirvote_add_signatures_to_pending_consensus(sig, &msg);
+ if (r >= 0)
+ n_sigs += r;
tor_free(sig);
});
if (n_sigs)
@@ -1740,7 +1742,7 @@ dirvote_compute_consensus(void)
return -1;
}
-/** Helper: we just got the <b>deteached_signatures_body</b> sent to us as
+/** Helper: we just got the <b>detached_signatures_body</b> sent to us as
* signatures on the currently pending consensus. Add them to the consensus
* as appropriate. Return the number of signatures added. (?) */
static int