From 6aef89bda4800384eddf79e42d965c2b011acdb4 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Fri, 15 Jul 2011 12:58:13 -0400 Subject: Remove compare_addr_to_node_policy Instead, use compare_tor_addr_to_node_policy everywhere. One advantage of this is that compare_tor_addr_to_node_policy can better distinguish 0.0.0.0 from "unknown", which caused a nasty bug with microdesc users. --- src/or/circuitbuild.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/or/circuitbuild.c') diff --git a/src/or/circuitbuild.c b/src/or/circuitbuild.c index 4397aa5c13..f7d5524cd8 100644 --- a/src/or/circuitbuild.c +++ b/src/or/circuitbuild.c @@ -2634,7 +2634,7 @@ node_handles_some_port(const node_t *node, smartlist_t *needed_ports) port = *(uint16_t *)smartlist_get(needed_ports, i); tor_assert(port); if (node) - r = compare_addr_to_node_policy(0, port, node); + r = compare_tor_addr_to_node_policy(NULL, port, node); else continue; if (r != ADDR_POLICY_REJECTED && r != ADDR_POLICY_PROBABLY_REJECTED) -- cgit v1.2.3-54-g00ecf