summaryrefslogtreecommitdiff
path: root/src/test/test_policy.c
diff options
context:
space:
mode:
authorteor (Tim Wilson-Brown) <teor2345@gmail.com>2015-09-16 00:34:12 +1000
committerteor (Tim Wilson-Brown) <teor2345@gmail.com>2015-09-16 00:34:12 +1000
commit047989ea288fa1e3099f1897a3596abd6f2e8860 (patch)
tree08f5c2c108b5376b400cc77d8450e7fc4882f252 /src/test/test_policy.c
parentd3358a0a05f661f78286d43fcc71d79daa090460 (diff)
downloadtor-047989ea288fa1e3099f1897a3596abd6f2e8860.tar.gz
tor-047989ea288fa1e3099f1897a3596abd6f2e8860.zip
fixup add malformed_list to unit tests from d3358a0a05f6 IPv6 wildcards
The unit tests added in e033d5e90bcb got malformed_list added to router_parse_addr_policy_item_from_string calls, but unit tests from subsequent commits didn't get the extra argument until now.
Diffstat (limited to 'src/test/test_policy.c')
-rw-r--r--src/test/test_policy.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/test/test_policy.c b/src/test/test_policy.c
index 4150b97468..e9be9e4ffc 100644
--- a/src/test/test_policy.c
+++ b/src/test/test_policy.c
@@ -208,12 +208,14 @@ test_policies_general(void *arg)
/* accept6 * and reject6 * produce IPv6 wildcards only */
policy10 = smartlist_new();
- p = router_parse_addr_policy_item_from_string("accept6 *:*",-1);
+ p = router_parse_addr_policy_item_from_string("accept6 *:*", -1,
+ &malformed_list);
tt_assert(p != NULL);
smartlist_add(policy10, p);
policy11 = smartlist_new();
- p = router_parse_addr_policy_item_from_string("reject6 *:*",-1);
+ p = router_parse_addr_policy_item_from_string("reject6 *:*", -1,
+ &malformed_list);
tt_assert(p != NULL);
smartlist_add(policy11, p);