mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-27 22:03:31 +01:00
Merge branch 'bug21007'
This commit is contained in:
commit
b6a5376b9c
@ -971,7 +971,9 @@ circuit_send_next_onion_skin(origin_circuit_t *circ)
|
|||||||
// The circuit is usable; we already marked the guard as okay.
|
// The circuit is usable; we already marked the guard as okay.
|
||||||
r = GUARD_USABLE_NOW;
|
r = GUARD_USABLE_NOW;
|
||||||
} else if (! circ->guard_state) {
|
} else if (! circ->guard_state) {
|
||||||
if (circuit_get_cpath_len(circ) != 1) {
|
if (circuit_get_cpath_len(circ) != 1 &&
|
||||||
|
circ->base_.purpose != CIRCUIT_PURPOSE_TESTING &&
|
||||||
|
get_options()->UseEntryGuards) {
|
||||||
log_warn(LD_BUG, "%d-hop circuit %p with purpose %d has no "
|
log_warn(LD_BUG, "%d-hop circuit %p with purpose %d has no "
|
||||||
"guard state",
|
"guard state",
|
||||||
circuit_get_cpath_len(circ), circ, circ->base_.purpose);
|
circuit_get_cpath_len(circ), circ, circ->base_.purpose);
|
||||||
|
Loading…
Reference in New Issue
Block a user