[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] r17250: {tor} Only replace the detached signatures object when we actually (tor/trunk/src/or)
Author: nickm
Date: 2008-11-11 11:52:07 -0500 (Tue, 11 Nov 2008)
New Revision: 17250
Modified:
tor/trunk/src/or/dirvote.c
Log:
Only replace the detached signatures object when we actually added or replaced at least one signature.
Modified: tor/trunk/src/or/dirvote.c
===================================================================
--- tor/trunk/src/or/dirvote.c 2008-11-11 16:36:03 UTC (rev 17249)
+++ tor/trunk/src/or/dirvote.c 2008-11-11 16:52:07 UTC (rev 17250)
@@ -2044,7 +2044,7 @@
sigs, msg_out);
log_info(LD_DIR,"Added %d signatures to consensus.", r);
- if (r >= 0) {
+ if (r >= 1) {
char *new_detached =
networkstatus_get_detached_signatures(pending_consensus);
const char *src;