diff options
author | Nick Mathewson <nickm@torproject.org> | 2013-06-17 11:30:56 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2013-06-17 11:30:56 -0400 |
commit | 0748c06f7c2a44fc1cc378d3afadeebd894c493c (patch) | |
tree | d6b8b79e9195412eb08031ce9ff4f516666eacc0 /src/or/circuitmux.h | |
parent | e61df2ec651345f1c46777105bbae69916402ecd (diff) | |
download | tor-0748c06f7c2a44fc1cc378d3afadeebd894c493c.tar.gz tor-0748c06f7c2a44fc1cc378d3afadeebd894c493c.zip |
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.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/circuitmux.h b/src/or/circuitmux.h index 9ff29de70a..a6bc415cdd 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 */ |