Explorar o código

Only replace the detached signatures object when we actually added or replaced at least one signature.

svn:r17250
Nick Mathewson %!s(int64=17) %!d(string=hai) anos
pai
achega
3970c34f10
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/or/dirvote.c

+ 1 - 1
src/or/dirvote.c

@@ -2044,7 +2044,7 @@ dirvote_add_signatures_to_pending_consensus(
                                             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;