aboutsummaryrefslogtreecommitdiff
path: root/src/test/test.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2013-02-09 21:17:44 -0500
committerRoger Dingledine <arma@torproject.org>2013-02-09 21:17:44 -0500
commit002c860caee374688f9478dfd6a6e2ebddad791f (patch)
tree6636dfa4cc038f9f44734bbf1c8e5472e00eed39 /src/test/test.c
parente1ec03f819b83dc229484fc9a97ea0817ce0926a (diff)
downloadtor-002c860caee374688f9478dfd6a6e2ebddad791f.tar
tor-002c860caee374688f9478dfd6a6e2ebddad791f.tar.gz
use me->addr when adding our address to our exit policy
(rather than me->address)
Diffstat (limited to 'src/test/test.c')
-rw-r--r--src/test/test.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/test.c b/src/test/test.c
index b838172d5..5b2c7bd46 100644
--- a/src/test/test.c
+++ b/src/test/test.c
@@ -1102,7 +1102,7 @@ test_policy_summary_helper(const char *policy_str,
line.value = (char *)policy_str;
line.next = NULL;
- r = policies_parse_exit_policy(&line, &policy, 1, 0, NULL, 1);
+ r = policies_parse_exit_policy(&line, &policy, 1, 0, 0, 1);
test_eq(r, 0);
summary = policy_summarize(policy, AF_INET);
@@ -1159,7 +1159,7 @@ test_policies(void)
test_assert(ADDR_POLICY_REJECTED ==
compare_tor_addr_to_addr_policy(&tar, 2, policy));
- test_assert(0 == policies_parse_exit_policy(NULL, &policy2, 1, 1, NULL, 1));
+ test_assert(0 == policies_parse_exit_policy(NULL, &policy2, 1, 1, 0, 1));
test_assert(policy2);
policy3 = smartlist_new();
@@ -1246,7 +1246,7 @@ test_policies(void)
line.key = (char*)"foo";
line.value = (char*)"accept *:80,reject private:*,reject *:*";
line.next = NULL;
- test_assert(0 == policies_parse_exit_policy(&line, &policy, 1, 0, NULL, 1));
+ test_assert(0 == policies_parse_exit_policy(&line, &policy, 1, 0, 0, 1));
test_assert(policy);
//test_streq(policy->string, "accept *:80");
//test_streq(policy->next->string, "reject *:*");