diff options
author | Nick Mathewson <nickm@torproject.org> | 2011-07-15 12:58:13 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2011-07-15 13:04:12 -0400 |
commit | 6aef89bda4800384eddf79e42d965c2b011acdb4 (patch) | |
tree | 59bdfe03904c596f884bede76cdddecaa84c9641 /src/or/circuitbuild.c | |
parent | f40df02f3e26df792b7e364d1b6ea5dab167405c (diff) | |
download | tor-6aef89bda4800384eddf79e42d965c2b011acdb4.tar.gz tor-6aef89bda4800384eddf79e42d965c2b011acdb4.zip |
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.
Diffstat (limited to 'src/or/circuitbuild.c')
-rw-r--r-- | src/or/circuitbuild.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) |