From 0069d14753e6050cc20ccd2009b3e04ab8426497 Mon Sep 17 00:00:00 2001 From: David Goulet Date: Wed, 18 Jan 2017 12:53:01 -0500 Subject: circuit: Make circuit_build_times_disabled take an or_options_t That way, when we are parsing the options and LearnCircuitBuildTimeout is set to 0, we don't assert trying to get the options list with get_options(). Fixes #21062 Signed-off-by: David Goulet --- src/or/circuitstats.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/or/circuitstats.h') diff --git a/src/or/circuitstats.h b/src/or/circuitstats.h index 72b160983f..23910276ae 100644 --- a/src/or/circuitstats.h +++ b/src/or/circuitstats.h @@ -17,7 +17,7 @@ circuit_build_times_t *get_circuit_build_times_mutable(void); double get_circuit_build_close_time_ms(void); double get_circuit_build_timeout_ms(void); -int circuit_build_times_disabled(void); +int circuit_build_times_disabled(const or_options_t *options); int circuit_build_times_enough_to_compute(const circuit_build_times_t *cbt); void circuit_build_times_update_state(const circuit_build_times_t *cbt, or_state_t *state); -- cgit v1.2.3-54-g00ecf