sched: Compare channel pointer in the socket table

Signed-off-by: David Goulet <dgoulet@torproject.org>
This commit is contained in:
David Goulet
2017-09-14 14:37:57 -04:00
parent e0984b8a51
commit bd34a0d30f
+1 -1
View 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;