aboutsummaryrefslogtreecommitdiff
path: root/src/core/or/relay.c
diff options
context:
space:
mode:
authorGeorge Kadianakis <desnacked@riseup.net>2019-07-23 13:52:36 +0300
committerGeorge Kadianakis <desnacked@riseup.net>2019-08-05 18:03:23 +0300
commit1e970d17b8e028ec6bd2fa9e0d88dc54209e0523 (patch)
tree821086c9bdcdb439d3eb7d92e902a6c034e863cf /src/core/or/relay.c
parentce477da8a7969964810fb16502073d5f34e58692 (diff)
downloadtor-1e970d17b8e028ec6bd2fa9e0d88dc54209e0523.tar.gz
tor-1e970d17b8e028ec6bd2fa9e0d88dc54209e0523.zip
Test that regular cells get ignored in padding circuits.
Diffstat (limited to 'src/core/or/relay.c')
-rw-r--r--src/core/or/relay.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/core/or/relay.c b/src/core/or/relay.c
index 3b5aa2b665..ac3f2a8bb4 100644
--- a/src/core/or/relay.c
+++ b/src/core/or/relay.c
@@ -1584,12 +1584,10 @@ process_sendme_cell(const relay_header_t *rh, const cell_t *cell,
* unpacked by the parent function, and <b>optimistic_data</b> as set by the
* parent function.
*/
-static int
+STATIC int
handle_relay_command(cell_t *cell, circuit_t *circ,
- edge_connection_t *conn,
- crypt_path_t *layer_hint,
- relay_header_t *rh,
- int optimistic_data)
+ edge_connection_t *conn, crypt_path_t *layer_hint,
+ relay_header_t *rh, int optimistic_data)
{
unsigned domain = layer_hint?LD_APP:LD_EXIT;
int reason;