aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2008-11-11 16:52:07 +0000
committerNick Mathewson <nickm@torproject.org>2008-11-11 16:52:07 +0000
commit3970c34f10ff1c398eac2074e9dfedb308316664 (patch)
tree1c0e8c89723903970f5296552c1e2b397a9b21b5 /src
parent997aea74dc82f3fda14cd407411e2564b4851a17 (diff)
downloadtor-3970c34f10ff1c398eac2074e9dfedb308316664.tar
tor-3970c34f10ff1c398eac2074e9dfedb308316664.tar.gz
Only replace the detached signatures object when we actually added or replaced at least one signature.
svn:r17250
Diffstat (limited to 'src')
-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 15f802d0c..7dce375c7 100644
--- a/src/or/dirvote.c
+++ b/src/or/dirvote.c
@@ -2044,7 +2044,7 @@ dirvote_add_signatures_to_pending_consensus(
sigs, msg_out);
log_info(LD_DIR,"Added %d signatures to consensus.", r);
- if (r >= 0) {
+ if (r >= 1) {
char *new_detached =
networkstatus_get_detached_signatures(pending_consensus);
const char *src;