From: Andrea Shepard Date: Mon, 1 Oct 2012 17:58:27 +0000 (-0700) Subject: Adjust the circuitmux_t counter correctly in circuitmux_notify_xmit_cells() X-Git-Tag: tor-0.2.4.4-alpha~37^2~21 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7598e669e866f2c1aa61e430c86a06f10dd03cc6;p=thirdparty%2Ftor.git Adjust the circuitmux_t counter correctly in circuitmux_notify_xmit_cells() --- diff --git a/src/or/circuitmux.c b/src/or/circuitmux.c index b16eb63acc..fd598407eb 100644 --- a/src/or/circuitmux.c +++ b/src/or/circuitmux.c @@ -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) {