summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIvan Markin <twim@riseup.net>2016-10-17 16:06:36 +0000
committerDavid Goulet <dgoulet@torproject.org>2016-10-27 10:19:06 -0400
commit23b878b875d7feab195be0e856da4aa3f5ac2e15 (patch)
treed3d44a69a92147b215c99c7ed3ef99aa7662bfb8 /src
parent2d049469602f5e6efbe8f1ded0cbcd3aa957f3eb (diff)
downloadtor-23b878b875d7feab195be0e856da4aa3f5ac2e15.tar.gz
tor-23b878b875d7feab195be0e856da4aa3f5ac2e15.zip
Do assert when calling relay_send_command_from_edge() on OR-side circs
Diffstat (limited to 'src')
-rw-r--r--src/or/relay.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/relay.c b/src/or/relay.c
index 823e0743bd..aa29cc805e 100644
--- a/src/or/relay.c
+++ b/src/or/relay.c
@@ -617,7 +617,7 @@ relay_send_command_from_edge_(streamid_t stream_id, circuit_t *circ,
cell.circ_id = TO_OR_CIRCUIT(circ)->p_circ_id;
cell_direction = CELL_DIRECTION_IN;
} else {
- return -1;
+ tor_assert(0);
}
memset(&rh, 0, sizeof(rh));