[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor/master] Do assert when calling relay_send_command_from_edge() on OR-side circs



commit 23b878b875d7feab195be0e856da4aa3f5ac2e15
Author: Ivan Markin <twim@xxxxxxxxxx>
Date:   Mon Oct 17 16:06:36 2016 +0000

    Do assert when calling relay_send_command_from_edge() on OR-side circs
---
 src/or/relay.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/or/relay.c b/src/or/relay.c
index 823e074..aa29cc8 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));



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits