aboutsummaryrefslogtreecommitdiff
path: root/src/or/circuitmux.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2013-06-17 11:30:56 -0400
committerNick Mathewson <nickm@torproject.org>2013-06-17 11:30:56 -0400
commit0748c06f7c2a44fc1cc378d3afadeebd894c493c (patch)
treed6b8b79e9195412eb08031ce9ff4f516666eacc0 /src/or/circuitmux.h
parente61df2ec651345f1c46777105bbae69916402ecd (diff)
downloadtor-0748c06f7c2a44fc1cc378d3afadeebd894c493c.tar
tor-0748c06f7c2a44fc1cc378d3afadeebd894c493c.tar.gz
Fix bug 9082: avoid leak when freeing destroy cell queues
In my #7912 fix, there wasn't any code to remove entries from the (channel, circuit ID)->circuit map corresponding to queued but un-sent DESTROYs. Spotted by skruffy. Fixes bug 9082; bug not in any released Tor.
Diffstat (limited to 'src/or/circuitmux.h')
-rw-r--r--src/or/circuitmux.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/circuitmux.h b/src/or/circuitmux.h
index 9ff29de70..a6bc415cd 100644
--- a/src/or/circuitmux.h
+++ b/src/or/circuitmux.h
@@ -137,6 +137,8 @@ void circuitmux_set_num_cells(circuitmux_t *cmux, circuit_t *circ,
void circuitmux_append_destroy_cell(channel_t *chan,
circuitmux_t *cmux, circid_t circ_id,
uint8_t reason);
+void circuitmux_mark_destroyed_circids_usable(circuitmux_t *cmux,
+ channel_t *chan);
#endif /* TOR_CIRCUITMUX_H */