Explorar o código

Do not report a partially-successful detached signature add as failed.

Also, regenerate the detached-signature document whenever any signatures are
successfully added.
Nick Mathewson %!s(int64=16) %!d(string=hai) anos
pai
achega
e722ffa605
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/or/dirvote.c

+ 1 - 1
src/or/dirvote.c

@@ -2568,7 +2568,7 @@ dirvote_add_signatures_to_all_pending_consensuses(
       n_added += res;
   }
 
-  if (errors) {
+  if (errors && !n_added) {
     r = -1;
     goto err;
   }