mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-19 18:00:33 +01:00
r16456@catbus: nickm | 2007-11-06 12:59:04 -0500
Fix a dumb bug in networkstatus_free_all() svn:r12397
This commit is contained in:
parent
e047f7f865
commit
6bc071f765
@ -1325,6 +1325,8 @@ networkstatus_set_current_consensus(const char *consensus, int from_cache,
|
||||
consensus_waiting_for_certs = NULL;
|
||||
if (consensus != consensus_waiting_for_certs_body)
|
||||
tor_free(consensus_waiting_for_certs_body);
|
||||
else
|
||||
consensus_waiting_for_certs_body = NULL;
|
||||
consensus_waiting_for_certs_set_at = 0;
|
||||
consensus_waiting_for_certs_dl_failed = 0;
|
||||
unlink(unverified_fname);
|
||||
@ -1727,8 +1729,8 @@ networkstatus_free_all(void)
|
||||
current_consensus = NULL;
|
||||
}
|
||||
if (consensus_waiting_for_certs) {
|
||||
networkstatus_vote_free(current_consensus);
|
||||
current_consensus = NULL;
|
||||
networkstatus_vote_free(consensus_waiting_for_certs);
|
||||
consensus_waiting_for_certs = NULL;
|
||||
}
|
||||
tor_free(consensus_waiting_for_certs_body);
|
||||
if (named_server_map) {
|
||||
|
Loading…
Reference in New Issue
Block a user