diff options
author | Nick Mathewson <nickm@torproject.org> | 2015-01-07 10:27:22 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2015-01-07 10:27:22 -0500 |
commit | b56c7614b64a3129df069e3ec161973073b127ef (patch) | |
tree | ccabbe702a072cfc4b2ec194d8211d06ce991904 /src/or/circuitbuild.h | |
parent | 79aaad952f4f43a7057c4162ae378d5bad28a77e (diff) | |
download | tor-b56c7614b64a3129df069e3ec161973073b127ef.tar.gz tor-b56c7614b64a3129df069e3ec161973073b127ef.zip |
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".
Diffstat (limited to 'src/or/circuitbuild.h')
-rw-r--r-- | src/or/circuitbuild.h | 2 |
1 files changed, 1 insertions, 1 deletions
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); |