mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-25 07:07:52 +01:00
Adjust the circuitmux_t counter correctly in circuitmux_notify_xmit_cells()
This commit is contained in:
parent
96a6eff8fe
commit
7598e669e8
1 changed files with 2 additions and 0 deletions
|
@ -1324,6 +1324,8 @@ circuitmux_notify_xmit_cells(circuitmux_t *cmux, circuit_t *circ,
|
|||
hashent->muxinfo.cell_count -= n_cells;
|
||||
/* Do we need to make the circuit inactive? */
|
||||
if (hashent->muxinfo.cell_count == 0) becomes_inactive = 1;
|
||||
/* Adjust the mux cell counter */
|
||||
cmux->n_cells -= n_cells;
|
||||
|
||||
/* If we aren't making it inactive later, move it to the tail of the list */
|
||||
if (!becomes_inactive) {
|
||||
|
|
Loading…
Add table
Reference in a new issue