aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrea Shepard <andrea@torproject.org>2012-10-01 10:58:27 -0700
committerAndrea Shepard <andrea@torproject.org>2012-10-10 00:44:46 -0700
commit7598e669e866f2c1aa61e430c86a06f10dd03cc6 (patch)
treee6ff26b2e9436725e488748068c38937335271e6 /src
parent96a6eff8fe59325e58f0aa7eec7efece36980099 (diff)
downloadtor-7598e669e866f2c1aa61e430c86a06f10dd03cc6.tar
tor-7598e669e866f2c1aa61e430c86a06f10dd03cc6.tar.gz
Adjust the circuitmux_t counter correctly in circuitmux_notify_xmit_cells()
Diffstat (limited to 'src')
-rw-r--r--src/or/circuitmux.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/circuitmux.c b/src/or/circuitmux.c
index b16eb63ac..fd598407e 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) {