aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_policy.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-02-15 07:48:30 -0500
committerNick Mathewson <nickm@torproject.org>2017-02-15 07:48:30 -0500
commit5d88267bf47fb532b53691ab428cbfd9db3881cf (patch)
tree62a47f1f6b04a73fa481f196b72cbec9ef7a9137 /src/test/test_policy.c
parentec6b5a098dcd1a264e84405006cd6a645d415ac4 (diff)
parent9f71fde146712d4fafbf3e967d560b18aed64794 (diff)
downloadtor-5d88267bf47fb532b53691ab428cbfd9db3881cf.tar.gz
tor-5d88267bf47fb532b53691ab428cbfd9db3881cf.zip
Merge branch 'bug21278_extra_029' into maint-0.2.9
Diffstat (limited to 'src/test/test_policy.c')
-rw-r--r--src/test/test_policy.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/test/test_policy.c b/src/test/test_policy.c
index f2d42b9561..1ffdc2cd51 100644
--- a/src/test/test_policy.c
+++ b/src/test/test_policy.c
@@ -304,10 +304,10 @@ test_policies_general(void *arg)
tt_assert(!exit_policy_is_general_exit(policy10));
tt_assert(!exit_policy_is_general_exit(policy11));
- tt_assert(cmp_addr_policies(policy, policy2));
- tt_assert(cmp_addr_policies(policy, NULL));
- tt_assert(!cmp_addr_policies(policy2, policy2));
- tt_assert(!cmp_addr_policies(NULL, NULL));
+ tt_assert(!addr_policies_eq(policy, policy2));
+ tt_assert(!addr_policies_eq(policy, NULL));
+ tt_assert(addr_policies_eq(policy2, policy2));
+ tt_assert(addr_policies_eq(NULL, NULL));
tt_assert(!policy_is_reject_star(policy2, AF_INET, 1));
tt_assert(policy_is_reject_star(policy, AF_INET, 1));