r14700@tombo: nickm | 2007-11-03 22:29:21 -0400

Fix sign error in networkstatus_note_certs_arrived().


svn:r12371
This commit is contained in:
Nick Mathewson 2007-11-04 02:29:27 +00:00
parent 5bf61633e3
commit 928c584ec2
2 changed files with 6 additions and 1 deletions

View File

@ -67,6 +67,11 @@ Changes in version 0.2.0.10-alpha - 2007-11-0?
the Tor process. Patch from Marco Bonetti with tweaks from Mike the Tor process. Patch from Marco Bonetti with tweaks from Mike
Perry. Perry.
o Major bugfixes:
- Consider replace the current consensus when certificates arrive
that make the pending consensus valid. Previously, we were only
considering replacement when the new certs _didn't_ help.
o Minor bugfixes: o Minor bugfixes:
- Refuse to start if both ORPort and UseBridges are set. Bugfix - Refuse to start if both ORPort and UseBridges are set. Bugfix
on 0.2.0.x. on 0.2.0.x.

View File

@ -1384,7 +1384,7 @@ networkstatus_note_certs_arrived(void)
{ {
if (consensus_waiting_for_certs) { if (consensus_waiting_for_certs) {
if (networkstatus_check_consensus_signature( if (networkstatus_check_consensus_signature(
consensus_waiting_for_certs, 0)<0) { consensus_waiting_for_certs, 0)>=0) {
if (!networkstatus_set_current_consensus( if (!networkstatus_set_current_consensus(
consensus_waiting_for_certs_body, 0, 1)) { consensus_waiting_for_certs_body, 0, 1)) {
tor_free(consensus_waiting_for_certs_body); tor_free(consensus_waiting_for_certs_body);