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

svn:r17251
This commit is contained in:
Nick Mathewson 2008-11-11 16:52:19 +00:00
parent b659adadd7
commit a84e7e26dc
1 changed files with 1 additions and 1 deletions

View File

@ -1872,7 +1872,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;