[tor-commits] [tor/master] sched: Compare channel pointer in the socket table

nickm at torproject.org nickm at torproject.org
Fri Sep 15 16:07:57 UTC 2017


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

    sched: Compare channel pointer in the socket table
    
    Signed-off-by: David Goulet <dgoulet at torproject.org>
---
 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;





More information about the tor-commits mailing list