Only replace the detached signatures object when we actually added or replaced at least one signature.

svn:r17250
This commit is contained in:
Nick Mathewson
2008-11-11 16:52:07 +00:00
parent 997aea74dc
commit 3970c34f10
+1 -1
View File
@@ -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;