Explorar o código

Do assert when calling relay_send_command_from_edge() on OR-side circs

Ivan Markin %!s(int64=9) %!d(string=hai) anos
pai
achega
23b878b875
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/or/relay.c

+ 1 - 1
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));