aboutsummaryrefslogtreecommitdiff
path: root/src/or
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2009-11-17 14:24:59 -0500
committerNick Mathewson <nickm@torproject.org>2009-11-17 14:24:59 -0500
commite722ffa60508d4959566eb210aa8e2a00c6cf899 (patch)
treee0b5cc579336d408f74c3dc5675477859d304f22 /src/or
parent2ebd22152eeb5a9dcfc1a8c508ebd57a836290e1 (diff)
downloadtor-e722ffa60508d4959566eb210aa8e2a00c6cf899.tar
tor-e722ffa60508d4959566eb210aa8e2a00c6cf899.tar.gz
Do not report a partially-successful detached signature add as failed.
Also, regenerate the detached-signature document whenever any signatures are successfully added.
Diffstat (limited to 'src/or')
-rw-r--r--src/or/dirvote.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/dirvote.c b/src/or/dirvote.c
index 5de5da198..448c1270c 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;
}