tor

The Tor anonymity network
git clone https://git.dasho.dev/tor.git
Log | Files | Refs | README | LICENSE

commit bd34a0d30f754f3dd75199d915febe918d058f30
parent e0984b8a51d2363d9ff30779d339d058887831ee
Author: David Goulet <dgoulet@torproject.org>
Date:   Thu, 14 Sep 2017 14:37:57 -0400

sched: Compare channel pointer in the socket table

Signed-off-by: David Goulet <dgoulet@torproject.org>

Diffstat:
Msrc/or/scheduler_kist.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/or/scheduler_kist.c b/src/or/scheduler_kist.c @@ -51,7 +51,7 @@ socket_table_ent_hash(const socket_table_ent_t *ent) static unsigned socket_table_ent_eq(const socket_table_ent_t *a, const socket_table_ent_t *b) { - return a->chan->global_identifier == b->chan->global_identifier; + return a->chan == b->chan; } typedef HT_HEAD(socket_table_s, socket_table_ent_s) socket_table_t;