summaryrefslogtreecommitdiff
path: root/src/test/test_policy.c
diff options
context:
space:
mode:
authorteor (Tim Wilson-Brown) <teor2345@gmail.com>2015-11-23 08:46:26 +1100
committerNick Mathewson <nickm@torproject.org>2015-11-25 22:26:10 -0500
commite14f9dd44f637c0211530e5e630eba1a129d1650 (patch)
tree200b515f20004c01f7e9df49d115e70d48f095df /src/test/test_policy.c
parent289b184e112885d4feb9569c77d322995b9417c7 (diff)
downloadtor-e14f9dd44f637c0211530e5e630eba1a129d1650.tar.gz
tor-e14f9dd44f637c0211530e5e630eba1a129d1650.zip
fixup! Add controller getinfo exit-policy/reject-private
Stop ignoring ExitPolicyRejectPrivate in getinfo exit-policy/reject-private. Fix a memory leak. Set ExitPolicyRejectPrivate in the unit tests, and make a mock function declaration static.
Diffstat (limited to 'src/test/test_policy.c')
-rw-r--r--src/test/test_policy.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/test/test_policy.c b/src/test/test_policy.c
index 63672ea6cd..082f930551 100644
--- a/src/test/test_policy.c
+++ b/src/test/test_policy.c
@@ -994,6 +994,7 @@ test_policies_getinfo_helper_policies(void *arg)
append_exit_policy_string(&mock_my_routerinfo.exit_policy, "reject *6:*");
mock_options.IPv6Exit = 1;
+ mock_options.ExitPolicyRejectPrivate = 1;
tor_addr_from_ipv4h(&mock_options.OutboundBindAddressIPv4_, TEST_IPV4_ADDR);
tor_addr_parse(&mock_options.OutboundBindAddressIPv6_, TEST_IPV6_ADDR);