summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorteor <teor2345@gmail.com>2016-09-06 15:58:30 +1000
committerNick Mathewson <nickm@torproject.org>2016-09-13 10:13:56 -0400
commit0285f4f34d72b2b77f36fd55fa46216f6b54efc4 (patch)
treec4b24dd434bbdc3039794cc0a64253f9b2e721f3 /src
parent3e4a401ead701750218146edde939ef74ce8a5d0 (diff)
downloadtor-0285f4f34d72b2b77f36fd55fa46216f6b54efc4.tar.gz
tor-0285f4f34d72b2b77f36fd55fa46216f6b54efc4.zip
Use CircuitBuildTimeout whenever circuit_build_times_disabled is true
Previously, we checked LearnCircuitBuildTimeout directly. Fixes bug #20073 in commit 5b0b51ca3 on tor 0.2.4.12-alpha.
Diffstat (limited to 'src')
-rw-r--r--src/or/circuitstats.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/circuitstats.c b/src/or/circuitstats.c
index fe8860e9c9..296f852c79 100644
--- a/src/or/circuitstats.c
+++ b/src/or/circuitstats.c
@@ -489,7 +489,7 @@ circuit_build_times_get_initial_timeout(void)
*/
if (!unit_tests && get_options()->CircuitBuildTimeout) {
timeout = get_options()->CircuitBuildTimeout*1000;
- if (get_options()->LearnCircuitBuildTimeout &&
+ if (!circuit_build_times_disabled() &&
timeout < circuit_build_times_min_timeout()) {
log_warn(LD_CIRC, "Config CircuitBuildTimeout too low. Setting to %ds",
circuit_build_times_min_timeout()/1000);