#ifdef ACTIVE_CIRCUITS_PARANOIA
#define assert_cmux_ok_paranoid(chan) \
- assert_cmux_okay(chan)
+ assert_circuit_mux_okay(chan)
#else
#define assert_cmux_ok_paranoid(chan)
#endif
streams_blocked = circ->streams_blocked_on_p_chan;
}
+ /* Circuitmux told us this was active, so it should have cells */
+ tor_assert(queue->n > 0);
+
/*
* Get just one cell here; once we've sent it, that can change the circuit
* selection, so we have to loop around for another even if this circuit