aboutsummaryrefslogtreecommitdiff
path: root/src/or/circuituse.c
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@ev0ke.net>2014-12-10 13:05:41 -0500
committerDavid Goulet <dgoulet@ev0ke.net>2014-12-17 16:06:53 -0500
commit3d83907ab168dd4b8cfc0919dbbbd188f02dca6b (patch)
tree45d7c8d09c1a2b085f3427a977de310538dfd0b6 /src/or/circuituse.c
parent5b55778c86b88329725521d2c93829a9c9ad3501 (diff)
downloadtor-3d83907ab168dd4b8cfc0919dbbbd188f02dca6b.tar.gz
tor-3d83907ab168dd4b8cfc0919dbbbd188f02dca6b.zip
Fix: call circuit_has_opened() for rendezvous circuit
In circuit_get_open_circ_or_launch(), for a rendezvous circuit, rend_client_rendcirc_has_opened() but circuit_has_opened() is preferred here since it will call the right function for a specific circuit purpose. Furthermore, a controller event is triggered where the former did not. Signed-off-by: David Goulet <dgoulet@ev0ke.net>
Diffstat (limited to 'src/or/circuituse.c')
-rw-r--r--src/or/circuituse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/circuituse.c b/src/or/circuituse.c
index 714754a672..071aac902b 100644
--- a/src/or/circuituse.c
+++ b/src/or/circuituse.c
@@ -2016,7 +2016,7 @@ circuit_get_open_circ_or_launch(entry_connection_t *conn,
circ->rend_data = rend_data_dup(ENTRY_TO_EDGE_CONN(conn)->rend_data);
if (circ->base_.purpose == CIRCUIT_PURPOSE_C_ESTABLISH_REND &&
circ->base_.state == CIRCUIT_STATE_OPEN)
- rend_client_rendcirc_has_opened(circ);
+ circuit_has_opened(circ);
}
}
} /* endif (!circ) */