mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-27 13:53:31 +01:00
Bug 40862: Check if circuits are unused more ways
This commit is contained in:
parent
03a31dbb68
commit
d499de5813
@ -1322,7 +1322,12 @@ count_client_usable_sets(void)
|
||||
log_warn(LD_BUG, "Client conflux linked set leg without a circuit");
|
||||
continue;
|
||||
}
|
||||
if (!CONST_TO_ORIGIN_CIRCUIT(leg->circ)->unusable_for_new_conns) {
|
||||
|
||||
/* The maze marks circuits used several different ways. If any of
|
||||
* them are marked for this leg, launch a new one. */
|
||||
if (!CONST_TO_ORIGIN_CIRCUIT(leg->circ)->unusable_for_new_conns &&
|
||||
!CONST_TO_ORIGIN_CIRCUIT(leg->circ)->isolation_values_set &&
|
||||
!leg->circ->timestamp_dirty) {
|
||||
count++;
|
||||
}
|
||||
} DIGEST256MAP_FOREACH_END;
|
||||
|
Loading…
Reference in New Issue
Block a user