summaryrefslogtreecommitdiff
path: root/src/or/connection_edge.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2006-12-13 22:42:52 +0000
committerRoger Dingledine <arma@torproject.org>2006-12-13 22:42:52 +0000
commit5cce710e2b86ffcaf3bad81b95ba94f26f1d2838 (patch)
treeb370d14af5971a4420dfc30b893caafa02382b6f /src/or/connection_edge.c
parent04409f202d2f6c9ceb3619aa8f19adb013336e5f (diff)
downloadtor-5cce710e2b86ffcaf3bad81b95ba94f26f1d2838.tar.gz
tor-5cce710e2b86ffcaf3bad81b95ba94f26f1d2838.zip
Some more documentation and specs for CONNECT_DIR and BEGIN_DIR.
Demand that BEGIN_DIR cells have an empty payload. svn:r9104
Diffstat (limited to 'src/or/connection_edge.c')
-rw-r--r--src/or/connection_edge.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/or/connection_edge.c b/src/or/connection_edge.c
index ad42e178d2..be0c9a4820 100644
--- a/src/or/connection_edge.c
+++ b/src/or/connection_edge.c
@@ -1651,8 +1651,9 @@ connection_ap_handshake_send_begin(edge_connection_t *ap_conn,
tor_assert(circ->build_state->onehop_tunnel == 0);
}
- if (connection_edge_send_command(ap_conn, TO_CIRCUIT(circ),
- begin_type, payload, payload_len,
+ if (connection_edge_send_command(ap_conn, TO_CIRCUIT(circ), begin_type,
+ begin_type == RELAY_COMMAND_BEGIN ? payload : NULL,
+ begin_type == RELAY_COMMAND_BEGIN ? payload_len : 0,
ap_conn->cpath_layer) < 0)
return -1; /* circuit is closed, don't continue */