[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] r17251: {tor} Backport: Only replace the detached signatures object when w (tor/branches/tor-0_2_0-patches/src/or)



Author: nickm
Date: 2008-11-11 11:52:19 -0500 (Tue, 11 Nov 2008)
New Revision: 17251

Modified:
   tor/branches/tor-0_2_0-patches/src/or/dirvote.c
Log:
Backport: Only replace the detached signatures object when we actually added or replaced at least one signature.

Modified: tor/branches/tor-0_2_0-patches/src/or/dirvote.c
===================================================================
--- tor/branches/tor-0_2_0-patches/src/or/dirvote.c	2008-11-11 16:52:07 UTC (rev 17250)
+++ tor/branches/tor-0_2_0-patches/src/or/dirvote.c	2008-11-11 16:52:19 UTC (rev 17251)
@@ -1872,7 +1872,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;