From b56c7614b64a3129df069e3ec161973073b127ef Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Wed, 7 Jan 2015 10:27:22 -0500 Subject: When closing circs build through a new guard, only close local ones If we decide not to use a new guard because we want to retry older guards, only close the locally-originating circuits passing through that guard. Previously we would close all the circuits. Fixes bug 9819; bugfix on 0.2.1.1-alpha. Reported by "skruffy". --- src/or/circuitbuild.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/or/circuitbuild.h') diff --git a/src/or/circuitbuild.h b/src/or/circuitbuild.h index 442afe8451..7d495307b2 100644 --- a/src/or/circuitbuild.h +++ b/src/or/circuitbuild.h @@ -22,7 +22,7 @@ origin_circuit_t *circuit_establish_circuit(uint8_t purpose, extend_info_t *exit, int flags); int circuit_handle_first_hop(origin_circuit_t *circ); -void circuit_n_chan_done(channel_t *chan, int status); +void circuit_n_chan_done(channel_t *chan, int status, int close_origin_circuits); int inform_testing_reachability(void); int circuit_timeout_want_to_count_circ(origin_circuit_t *circ); int circuit_send_next_onion_skin(origin_circuit_t *circ); -- cgit v1.2.3-54-g00ecf