From 0748c06f7c2a44fc1cc378d3afadeebd894c493c Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Mon, 17 Jun 2013 11:30:56 -0400 Subject: 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. --- src/or/channel.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/or/channel.h') diff --git a/src/or/channel.h b/src/or/channel.h index 0933ec8d3..83d7e900f 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 -- cgit v1.2.3