[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor/master] sched: Compare channel pointer in the socket table
commit bd34a0d30f754f3dd75199d915febe918d058f30
Author: David Goulet <dgoulet@xxxxxxxxxxxxxx>
Date: Thu Sep 14 14:37:57 2017 -0400
sched: Compare channel pointer in the socket table
Signed-off-by: David Goulet <dgoulet@xxxxxxxxxxxxxx>
---
src/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
index aad29b6a6..f35d0fae5 100644
--- 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;
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits