mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Backport: Fix from rovv: when adding a detached signature, do not automatically assume it is good just because we are adding it. We might also be adding it because it was the first signature we saw for a given voter.
svn:r17249
This commit is contained in:
@@ -1,4 +1,8 @@
|
||||
Changes in version 0.2.0.32 - 2008-??-??
|
||||
o Major bugfixes:
|
||||
- Fix a DOS opportunity during the voting signature collection process
|
||||
at directory authorities. Spotted by rovv. Bugfix on 0.2.0.x.
|
||||
|
||||
o Minor bugfixes:
|
||||
- Fix several infrequent memory leaks spotted by Coverity.
|
||||
- When testing for libevent functions, set the LDFLAGS variable
|
||||
|
||||
+2
-2
@@ -1089,8 +1089,8 @@ networkstatus_add_detached_signatures(networkstatus_t *target,
|
||||
memcpy(target_voter->signing_key_digest, src_voter->signing_key_digest,
|
||||
DIGEST_LEN);
|
||||
target_voter->signature_len = src_voter->signature_len;
|
||||
target_voter->good_signature = 1;
|
||||
target_voter->bad_signature = 0;
|
||||
target_voter->good_signature = src_voter->good_signature;
|
||||
target_voter->bad_signature = src_voter->bad_signature;
|
||||
} else {
|
||||
log_info(LD_DIR, "Not adding signature from %s", voter_identity);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user