]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Do not report a partially-successful detached signature add as failed.
authorNick Mathewson <nickm@torproject.org>
Tue, 17 Nov 2009 19:24:59 +0000 (14:24 -0500)
committerNick Mathewson <nickm@torproject.org>
Tue, 17 Nov 2009 19:24:59 +0000 (14:24 -0500)
Also, regenerate the detached-signature document whenever any signatures are
successfully added.

src/or/dirvote.c

index 5de5da19855f362496fdf1e77056b946b5f7f266..448c1270cd49e277981643298d7239ebbefd0773 100644 (file)
@@ -2568,7 +2568,7 @@ dirvote_add_signatures_to_all_pending_consensuses(
       n_added += res;
   }
 
-  if (errors) {
+  if (errors && !n_added) {
     r = -1;
     goto err;
   }