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/channel.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/channel.h')
-rw-r--r-- | src/or/channel.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/or/channel.h b/src/or/channel.h index 0933ec8d39..83d7e900ff 100644 --- a/src/or/channel.h +++ b/src/or/channel.h @@ -477,5 +477,9 @@ uint64_t channel_count_xmitted(channel_t *chan); uint64_t channel_listener_count_accepted(channel_listener_t *chan_l); +int packed_cell_is_destroy(channel_t *chan, + const packed_cell_t *packed_cell, + circid_t *circid_out); + #endif |