From: Nick Mathewson Date: Tue, 17 Nov 2009 19:24:59 +0000 (-0500) Subject: Do not report a partially-successful detached signature add as failed. X-Git-Tag: tor-0.2.2.6-alpha~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e722ffa60508d4959566eb210aa8e2a00c6cf899;p=thirdparty%2Ftor.git Do not report a partially-successful detached signature add as failed. Also, regenerate the detached-signature document whenever any signatures are successfully added. --- diff --git a/src/or/dirvote.c b/src/or/dirvote.c index 5de5da1985..448c1270cd 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; }