summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorteor <teor@torproject.org>2019-08-12 09:54:35 +1000
committerteor <teor@torproject.org>2019-08-12 09:54:35 +1000
commitd253b31cec04c35c551618b9b1ffa50ae4426303 (patch)
treed99861b087d206f628aee6388ddac2613c212633
parent31fb2bceb546fb84899e5c797e3f101b86dd8687 (diff)
parenta6399da598101d8046cbf7ab2d80051fd8820e2f (diff)
downloadtor-d253b31cec04c35c551618b9b1ffa50ae4426303.tar.gz
tor-d253b31cec04c35c551618b9b1ffa50ae4426303.zip
Merge remote-tracking branch 'tor-github/pr/1077' into maint-0.3.5
-rw-r--r--changes/bug290345
-rw-r--r--src/core/or/circuituse.c6
2 files changed, 11 insertions, 0 deletions
diff --git a/changes/bug29034 b/changes/bug29034
new file mode 100644
index 0000000000..e7aa9af00b
--- /dev/null
+++ b/changes/bug29034
@@ -0,0 +1,5 @@
+ o Major bugfixes (Onion service reachability):
+ - Properly clean up the introduction point map when circuits change purpose
+ from onion service circuits to pathbias, measurement, or other circuit types.
+ This should fix some service-side instances of introduction point failure.
+ Fixes bug 29034; bugfix on 0.3.2.1-alpha.
diff --git a/src/core/or/circuituse.c b/src/core/or/circuituse.c
index 02bfa15fb3..000a7c36da 100644
--- a/src/core/or/circuituse.c
+++ b/src/core/or/circuituse.c
@@ -3066,6 +3066,12 @@ circuit_change_purpose(circuit_t *circ, uint8_t new_purpose)
circ->purpose,
circuit_purpose_to_string(new_purpose),
new_purpose);
+
+ /* 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_cleanup(circ);
+ }
}
old_purpose = circ->purpose;