summaryrefslogtreecommitdiff
path: root/src/or/circuituse.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2006-03-27 02:25:34 +0000
committerRoger Dingledine <arma@torproject.org>2006-03-27 02:25:34 +0000
commit6f08d121d96be29c2ce2d9ef9df4416141651951 (patch)
tree91c4acf09b72156d35b9bf259c2e5b48b968a14a /src/or/circuituse.c
parent74d35c8027937fe8dac031bf76e31a017d4fa81f (diff)
downloadtor-6f08d121d96be29c2ce2d9ef9df4416141651951.tar.gz
tor-6f08d121d96be29c2ce2d9ef9df4416141651951.zip
Refactor and consolidate addr/exit policies into a new policies.c.
Fix some minor bugs and memory leaks along the way. svn:r6246
Diffstat (limited to 'src/or/circuituse.c')
-rw-r--r--src/or/circuituse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/circuituse.c b/src/or/circuituse.c
index db42402785..57cc538733 100644
--- a/src/or/circuituse.c
+++ b/src/or/circuituse.c
@@ -311,7 +311,7 @@ circuit_stream_is_being_handled(connection_t *conn, uint16_t port, int min)
if (conn) {
ok = connection_ap_can_use_exit(conn, exitrouter);
} else {
- addr_policy_result_t r = router_compare_addr_to_addr_policy(
+ addr_policy_result_t r = compare_addr_to_addr_policy(
0, port, exitrouter->exit_policy);
ok = r != ADDR_POLICY_REJECTED && r != ADDR_POLICY_PROBABLY_REJECTED;
}