[or-cvs] [tor/master] Do not report a partially-successful detached signature add as failed.

Nick Mathewson nickm at seul.org
Tue Nov 17 19:25:45 UTC 2009


Author: Nick Mathewson <nickm at torproject.org>
Date: Tue, 17 Nov 2009 14:24:59 -0500
Subject: Do not report a partially-successful detached signature add as failed.
Commit: e722ffa60508d4959566eb210aa8e2a00c6cf899

Also, regenerate the detached-signature document whenever any signatures are
successfully added.
---
 src/or/dirvote.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/or/dirvote.c b/src/or/dirvote.c
index 5de5da1..448c127 100644
--- a/src/or/dirvote.c
+++ b/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;
   }
-- 
1.5.6.5



More information about the tor-commits mailing list