summaryrefslogtreecommitdiff
path: root/src/or/circuituse.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2005-01-19 17:13:11 +0000
committerRoger Dingledine <arma@torproject.org>2005-01-19 17:13:11 +0000
commitcfcc93296c005513315333224a7d00ed1dfaff62 (patch)
treeaf6b4c3f9bcab4ae840f86b63d5ac847199b6788 /src/or/circuituse.c
parentbd2d740b49cd136751fbe5836d0e398b7eb8b03e (diff)
downloadtor-cfcc93296c005513315333224a7d00ed1dfaff62.tar.gz
tor-cfcc93296c005513315333224a7d00ed1dfaff62.zip
bugfix for cvs: we were needing a rendezvous circ, so we cannibalized
a general circ, and called rend_client_rendcirc_has_opened(), which called connection_ap_attach_pending(), which was needing a rendezvous circ, so it cannibalized a general circuit, and called ... svn:r3370
Diffstat (limited to 'src/or/circuituse.c')
-rw-r--r--src/or/circuituse.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/or/circuituse.c b/src/or/circuituse.c
index 0298b72309..f5e85adcc4 100644
--- a/src/or/circuituse.c
+++ b/src/or/circuituse.c
@@ -49,9 +49,9 @@ static int circuit_is_acceptable(circuit_t *circ,
/* if this circ isn't our purpose, skip. */
if (purpose == CIRCUIT_PURPOSE_C_REND_JOINED && !must_be_open) {
if (circ->purpose != CIRCUIT_PURPOSE_C_ESTABLISH_REND &&
- circ->purpose != CIRCUIT_PURPOSE_C_REND_READY &&
- circ->purpose != CIRCUIT_PURPOSE_C_REND_READY_INTRO_ACKED &&
- circ->purpose != CIRCUIT_PURPOSE_C_REND_JOINED)
+ circ->purpose != CIRCUIT_PURPOSE_C_REND_READY &&
+ circ->purpose != CIRCUIT_PURPOSE_C_REND_READY_INTRO_ACKED &&
+ circ->purpose != CIRCUIT_PURPOSE_C_REND_JOINED)
return 0;
} else if (purpose == CIRCUIT_PURPOSE_C_INTRODUCE_ACK_WAIT && !must_be_open) {
if (circ->purpose != CIRCUIT_PURPOSE_C_INTRODUCING &&
@@ -555,6 +555,7 @@ void circuit_has_opened(circuit_t *circ) {
switch (circ->purpose) {
case CIRCUIT_PURPOSE_C_ESTABLISH_REND:
rend_client_rendcirc_has_opened(circ);
+ connection_ap_attach_pending();
break;
case CIRCUIT_PURPOSE_C_INTRODUCING:
rend_client_introcirc_has_opened(circ);