mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-27 22:03:31 +01:00
Merge remote-tracking branch 'origin/maint-0.2.3'
This commit is contained in:
commit
274e281741
5
changes/bug6514
Normal file
5
changes/bug6514
Normal file
@ -0,0 +1,5 @@
|
||||
o Minor bugfixes:
|
||||
- Add a (probably redundant) memory clear between iterations of
|
||||
the router status voting loop, to prevent future coding errors
|
||||
where data might leak between iterations of the loop. Resolves
|
||||
ticket 6514.
|
@ -1752,6 +1752,7 @@ networkstatus_compute_consensus(smartlist_t *votes,
|
||||
rs = compute_routerstatus_consensus(matching_descs, consensus_method,
|
||||
microdesc_digest);
|
||||
/* Copy bits of that into rs_out. */
|
||||
memset(&rs_out, 0, sizeof(rs_out));
|
||||
tor_assert(fast_memeq(lowest_id, rs->status.identity_digest,DIGEST_LEN));
|
||||
memcpy(rs_out.identity_digest, lowest_id, DIGEST_LEN);
|
||||
memcpy(rs_out.descriptor_digest, rs->status.descriptor_digest,
|
||||
|
Loading…
Reference in New Issue
Block a user