Przeglądaj źródła

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

svn:r17250
Nick Mathewson 15 lat temu
rodzic
commit
3970c34f10
1 zmienionych plików z 1 dodań i 1 usunięć
  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;