aboutsummaryrefslogtreecommitdiff
path: root/src/or/rendservice.c
diff options
context:
space:
mode:
authorMike Perry <mikeperry-git@fscked.org>2013-01-19 21:16:24 -0800
committerMike Perry <mikeperry-git@fscked.org>2013-01-20 14:32:56 -0800
commitf858370233a7d01d89949f79f92e8b67acd69f46 (patch)
treee8a6df846a6e7a97ef6a43e25a2ebf5032309921 /src/or/rendservice.c
parentfb711e6d77cc6b4d4ff2daa506960919626a3f6a (diff)
downloadtor-f858370233a7d01d89949f79f92e8b67acd69f46.tar.gz
tor-f858370233a7d01d89949f79f92e8b67acd69f46.zip
Prevent early close of path bias testing circuits.
We need to let them live long enough to perform the test.
Diffstat (limited to 'src/or/rendservice.c')
-rw-r--r--src/or/rendservice.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/rendservice.c b/src/or/rendservice.c
index 3b2eeb4ad0..f115d8bfc8 100644
--- a/src/or/rendservice.c
+++ b/src/or/rendservice.c
@@ -3068,7 +3068,8 @@ rend_services_introduce(void)
if (intro->time_expiring + INTRO_POINT_EXPIRATION_GRACE_PERIOD > now) {
/* This intro point has completely expired. Remove it, and
* mark the circuit for close if it's still alive. */
- if (intro_circ != NULL) {
+ if (intro_circ != NULL &&
+ intro_circ->base_.purpose != CIRCUIT_PURPOSE_PATH_BIAS_TESTING) {
circuit_mark_for_close(TO_CIRCUIT(intro_circ),
END_CIRC_REASON_FINISHED);
}