]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
sched: Compare channel pointer in the socket table
authorDavid Goulet <dgoulet@torproject.org>
Thu, 14 Sep 2017 18:37:57 +0000 (14:37 -0400)
committerDavid Goulet <dgoulet@torproject.org>
Fri, 15 Sep 2017 15:40:59 +0000 (11:40 -0400)
Signed-off-by: David Goulet <dgoulet@torproject.org>
src/or/scheduler_kist.c

index aad29b6a62dd0400ed347cb12692e5721761e799..f35d0fae5718ef21038dcc7f4b7b2351eeae6a40 100644 (file)
@@ -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;