aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2005-11-19 01:55:58 +0000
committerRoger Dingledine <arma@torproject.org>2005-11-19 01:55:58 +0000
commitf824fb5f8308db6c00e19985e8a04038b020765b (patch)
tree29c61f6d1e26889a471d5d503010cead01f6a137 /src
parent0de8f4ee55e223deecc9b1465285fc81ae4f08e1 (diff)
downloadtor-f824fb5f8308db6c00e19985e8a04038b020765b.tar
tor-f824fb5f8308db6c00e19985e8a04038b020765b.tar.gz
Bugfix: it looks like some middleman circuits were spending the
first few moments of their existence in CIRCUIT_STATE_OPEN, then when Alice sent an extend request for a Tor that they're not connected to, they switched to CIRCUIT_STATE_OR_WAIT and spent the rest of their sorry little lives in that state, even when the connection was established and they were shuttling relay cells back and forth. And I'm not going to backport this (yet), because somehow it worked! svn:r5427
Diffstat (limited to 'src')
-rw-r--r--src/or/circuitbuild.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/circuitbuild.c b/src/or/circuitbuild.c
index ec8672be1..f25a6ab64 100644
--- a/src/or/circuitbuild.c
+++ b/src/or/circuitbuild.c
@@ -420,6 +420,7 @@ circuit_n_conn_done(connection_t *or_conn, int status)
continue;
}
tor_free(circ->onionskin);
+ circ->state = CIRCUIT_STATE_OPEN;
}
}
}