aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrl1987 <rl1987@sdf.lonestar.org>2014-12-07 15:47:09 +0200
committerrl1987 <rl1987@sdf.lonestar.org>2014-12-07 15:47:09 +0200
commit9c239eccc973042cbaec16fd48a457f44aeafc24 (patch)
tree0c398802b5fe02f206cd993ebf50ff65ef019b44 /src
parent3c0e09ef813a12d64fb4329978853e2b27a5856e (diff)
downloadtor-9c239eccc973042cbaec16fd48a457f44aeafc24.tar.gz
tor-9c239eccc973042cbaec16fd48a457f44aeafc24.zip
Use END_CIRC_REASON_TORPROTOCOL instead of magic number.
Diffstat (limited to 'src')
-rw-r--r--src/or/connection_edge.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/connection_edge.c b/src/or/connection_edge.c
index 14b391180e..9ace375d74 100644
--- a/src/or/connection_edge.c
+++ b/src/or/connection_edge.c
@@ -2461,7 +2461,7 @@ connection_exit_begin_conn(cell_t *cell, circuit_t *circ)
relay_header_unpack(&rh, cell->payload);
if (rh.length > RELAY_PAYLOAD_SIZE)
- return -1;
+ return -END_CIRC_REASON_TORPROTOCOL;
/* Note: we have to use relay_send_command_from_edge here, not
* connection_edge_end or connection_edge_send_command, since those require
@@ -2479,7 +2479,7 @@ connection_exit_begin_conn(cell_t *cell, circuit_t *circ)
r = begin_cell_parse(cell, &bcell, &end_reason);
if (r < -1) {
- return -1;
+ return -END_CIRC_REASON_TORPROTOCOL;
} else if (r == -1) {
tor_free(bcell.address);
relay_send_end_cell_from_edge(rh.stream_id, circ, end_reason, NULL);