diff options
author | Mike Perry <mikeperry-git@torproject.org> | 2019-06-05 11:38:01 -0700 |
---|---|---|
committer | Mike Perry <mikeperry-git@torproject.org> | 2019-06-05 11:38:01 -0700 |
commit | 31c34f6524fecd6a104a8dac04d9330b5323e3c0 (patch) | |
tree | 50b59069dc41454eee1bacd0d4c275fe0a7e576a /src/core/or/circuituse.c | |
parent | a42131bf4823bed42563f30d4925462b2df02c27 (diff) | |
download | tor-31c34f6524fecd6a104a8dac04d9330b5323e3c0.tar.gz tor-31c34f6524fecd6a104a8dac04d9330b5323e3c0.zip |
Revert "hs: Implement a helper to repurpose a circuit"
This reverts commit 3789f22bcbfbc6de415a838e4c4bfb2555c7d6c3.
Diffstat (limited to 'src/core/or/circuituse.c')
-rw-r--r-- | src/core/or/circuituse.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/core/or/circuituse.c b/src/core/or/circuituse.c index b3d5c6bb81..485c389054 100644 --- a/src/core/or/circuituse.c +++ b/src/core/or/circuituse.c @@ -3068,12 +3068,6 @@ circuit_change_purpose(circuit_t *circ, uint8_t new_purpose) if (circ->purpose == new_purpose) return; - /* Take specific actions if we are repurposing a hidden service circuit. */ - if (circuit_purpose_is_hidden_service(circ->purpose) && - !circuit_purpose_is_hidden_service(new_purpose)) { - hs_circ_repurpose(circ); - } - if (CIRCUIT_IS_ORIGIN(circ)) { char old_purpose_desc[80] = ""; |