Ticket #9254: 9254.patch

File 9254.patch, 484 bytes (added by nickm, 6 years ago)

possible fix for #9254

  • src/or/circuitlist.c

    diff --git a/src/or/circuitlist.c b/src/or/circuitlist.c
    index 3dc362f..daeaa37 100644
    a b static size_t 
    15181518n_cells_in_circ_queues(const circuit_t *c)
    15191519{
    15201520  size_t n = c->n_chan_cells.n;
    1521   if (! CIRCUIT_IS_ORIGIN(c))
    1522     n += TO_OR_CIRCUIT((circuit_t*)c)->p_chan_cells.n;
     1521  if (! CIRCUIT_IS_ORIGIN(c)) {
     1522    circuit_t *cc = (circuit_t *) c;
     1523    n += TO_OR_CIRCUIT(cc)->p_chan_cells.n;
     1524  }
    15231525  return n;
    15241526}
    15251527