From: Nick Mathewson Date: Tue, 11 Nov 2008 16:52:19 +0000 (+0000) Subject: Backport: Only replace the detached signatures object when we actually added or repla... X-Git-Tag: tor-0.2.0.32~11 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a84e7e26dc9d5590d786864e30c38432bfe7ac5f;p=thirdparty%2Ftor.git Backport: Only replace the detached signatures object when we actually added or replaced at least one signature. svn:r17251 --- diff --git a/src/or/dirvote.c b/src/or/dirvote.c index d3c1ce7bbf..6fc234bd34 100644 --- a/src/or/dirvote.c +++ b/src/or/dirvote.c @@ -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;