summaryrefslogtreecommitdiff
path: root/src/or/command.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2004-04-08 02:24:06 +0000
committerNick Mathewson <nickm@torproject.org>2004-04-08 02:24:06 +0000
commit14e31fbd71f76d2dba50f4fd49af16e431aa26dd (patch)
tree2cca2bea423fb9530fa1b33a4258a649d10bbf1b /src/or/command.c
parentad2192c90f11575180f90dbd1e4a9e3c81c3eb3f (diff)
downloadtor-14e31fbd71f76d2dba50f4fd49af16e431aa26dd.tar.gz
tor-14e31fbd71f76d2dba50f4fd49af16e431aa26dd.zip
Use CIRCUIT_IS_ORIGIN in favor of boolean circ->cpath
svn:r1555
Diffstat (limited to 'src/or/command.c')
-rw-r--r--src/or/command.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/command.c b/src/or/command.c
index 4c4010970f..a1561425e0 100644
--- a/src/or/command.c
+++ b/src/or/command.c
@@ -132,7 +132,7 @@ static void command_process_created_cell(cell_t *cell, connection_t *conn) {
return;
}
- if(circ->cpath) { /* we're the OP. Handshake this. */
+ if(CIRCUIT_IS_ORIGIN(circ)) { /* we're the OP. Handshake this. */
log_fn(LOG_DEBUG,"at OP. Finishing handshake.");
if(circuit_finish_handshake(circ, cell->payload) < 0) {
log_fn(LOG_WARN,"circuit_finish_handshake failed.");
@@ -198,7 +198,7 @@ static void command_process_destroy_cell(cell_t *cell, connection_t *conn) {
onion_pending_remove(circ);
}
- if(cell->circ_id == circ->p_circ_id || circ->cpath) {
+ if(cell->circ_id == circ->p_circ_id || CIRCUIT_IS_ORIGIN(circ)) {
/* either the destroy came from behind, or we're the AP */
circ->p_conn = NULL;
circuit_mark_for_close(circ);