aboutsummaryrefslogtreecommitdiff
path: root/src/or/circuituse.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2011-10-03 15:06:07 -0400
committerNick Mathewson <nickm@torproject.org>2011-10-03 15:06:07 -0400
commit4aa4bce474e6fb3e52c0aecb48f3e5024576e693 (patch)
treee50f755df4f2f7ee1fed7d11f0671abf46899e06 /src/or/circuituse.c
parenta7f93b509c9c24a4af6abdd946007bdf2d497d87 (diff)
parentc5226bfe1c26d2cbcc789c1074d8d925e7c7fea1 (diff)
downloadtor-4aa4bce474e6fb3e52c0aecb48f3e5024576e693.tar.gz
tor-4aa4bce474e6fb3e52c0aecb48f3e5024576e693.zip
Merge remote-tracking branch 'rransom-tor/bug3335-v2'
Conflicts: src/or/connection_edge.c src/or/rendclient.c
Diffstat (limited to 'src/or/circuituse.c')
-rw-r--r--src/or/circuituse.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/or/circuituse.c b/src/or/circuituse.c
index f7f080db13..26bc45173e 100644
--- a/src/or/circuituse.c
+++ b/src/or/circuituse.c
@@ -1589,6 +1589,13 @@ link_apconn_to_circ(entry_connection_t *apconn, origin_circuit_t *circ,
/* assert_connection_ok(conn, time(NULL)); */
circ->p_streams = ENTRY_TO_EDGE_CONN(apconn);
+ if (connection_edge_is_rendezvous_stream(apconn)) {
+ /* We are attaching a stream to a rendezvous circuit. That means
+ * that an attempt to connect to a hidden service just
+ * succeeded. Tell rendclient.c. */
+ rend_client_note_connection_attempt_ended(apconn->rend_data->onion_address);
+ }
+
if (cpath) { /* we were given one; use it */
tor_assert(cpath_is_on_circuit(circ, cpath));
} else {