]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
fixup add malformed_list to unit tests from d3358a0a05f6 IPv6 wildcards
authorteor (Tim Wilson-Brown) <teor2345@gmail.com>
Tue, 15 Sep 2015 14:34:12 +0000 (00:34 +1000)
committerteor (Tim Wilson-Brown) <teor2345@gmail.com>
Tue, 15 Sep 2015 14:34:12 +0000 (00:34 +1000)
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.

src/test/test_policy.c

index 4150b974684988da5a1fd5ddc439e8d8ecd09f83..e9be9e4ffc6ada163f5f46ada187205555720ed2 100644 (file)
@@ -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);