aboutsummaryrefslogtreecommitdiff
path: root/src/core/or/connection_edge.c
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2021-02-01 12:20:39 -0500
committerDavid Goulet <dgoulet@torproject.org>2021-02-01 12:22:23 -0500
commitbd4a3f64a1f6802c97a7976ff9f80495ef3ba57d (patch)
tree2aa9c3e0111d06dc8562387d087a9eb920bfc662 /src/core/or/connection_edge.c
parent838e07be9dc88d41da39a1b4b6b445f67309b108 (diff)
downloadtor-bd4a3f64a1f6802c97a7976ff9f80495ef3ba57d.tar.gz
tor-bd4a3f64a1f6802c97a7976ff9f80495ef3ba57d.zip
node: Move reentry set to use a digestmap_t
Any lookup now will be certain and not probabilistic as the bloomfilter. Closes #40269 Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/core/or/connection_edge.c')
-rw-r--r--src/core/or/connection_edge.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/or/connection_edge.c b/src/core/or/connection_edge.c
index da5431c47e..27a616fa24 100644
--- a/src/core/or/connection_edge.c
+++ b/src/core/or/connection_edge.c
@@ -4290,7 +4290,7 @@ connection_exit_connect(edge_connection_t *edge_conn)
* case of an attack so this is a small price to pay. */
if (!connection_edge_is_rendezvous_stream(edge_conn) &&
!network_reentry_is_allowed() &&
- nodelist_reentry_probably_contains(&conn->addr, conn->port)) {
+ nodelist_reentry_contains(&conn->addr, conn->port)) {
log_info(LD_EXIT, "%s tried to connect back to a known relay address. "
"Closing.", connection_describe(conn));
connection_edge_end(edge_conn, END_STREAM_REASON_TORPROTOCOL);