[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] r13080: Jan 08 19:55:01.865 [notice] Added -2 pending signatures whi (tor/trunk/src/or)
Author: arma
Date: 2008-01-08 20:06:19 -0500 (Tue, 08 Jan 2008)
New Revision: 13080
Modified:
tor/trunk/src/or/dirvote.c
Log:
Jan 08 19:55:01.865 [notice] Added -2 pending signatures while building consensus.
Modified: tor/trunk/src/or/dirvote.c
===================================================================
--- tor/trunk/src/or/dirvote.c 2008-01-08 23:51:48 UTC (rev 13079)
+++ tor/trunk/src/or/dirvote.c 2008-01-09 01:06:19 UTC (rev 13080)
@@ -1711,7 +1711,9 @@
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 @@
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