summaryrefslogtreecommitdiff
path: root/src/or/command.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2003-05-02 21:29:25 +0000
committerRoger Dingledine <arma@torproject.org>2003-05-02 21:29:25 +0000
commit96759a609e65edf0ba48471242a94b63023fba3c (patch)
treedd8c0837888ccd5cd28ae009b1d1427a70f596db /src/or/command.c
parentbb75b142187798b3599b76d53e1faf581676d30a (diff)
downloadtor-96759a609e65edf0ba48471242a94b63023fba3c.tar.gz
tor-96759a609e65edf0ba48471242a94b63023fba3c.zip
streams are now 8 bytes, and are recognized by intermediate hops
the OP only crypts the appropriate number of times depending on which layer (hop on the path) it's for/from. svn:r262
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 503b95fe94..d589e71b1b 100644
--- a/src/or/command.c
+++ b/src/or/command.c
@@ -241,14 +241,14 @@ void command_process_relay_cell(cell_t *cell, connection_t *conn) {
if(cell->aci == circ->p_aci) { /* it's an outgoing cell */
cell->aci = circ->n_aci; /* switch it */
- if(circuit_deliver_relay_cell(cell, circ, CELL_DIRECTION_OUT) < 0) {
+ if(circuit_deliver_relay_cell(cell, circ, CELL_DIRECTION_OUT, conn->cpath_layer) < 0) {
log(LOG_INFO,"command_process_relay_cell(): circuit_deliver_relay_cell (forward) failed. Closing.");
circuit_close(circ);
return;
}
} else { /* it's an ingoing cell */
cell->aci = circ->p_aci; /* switch it */
- if(circuit_deliver_relay_cell(cell, circ, CELL_DIRECTION_IN) < 0) {
+ if(circuit_deliver_relay_cell(cell, circ, CELL_DIRECTION_IN, NULL) < 0) {
log(LOG_DEBUG,"command_process_relay_cell(): circuit_deliver_relay_cell (backward) failed. Closing.");
circuit_close(circ);
return;