mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 06:13:31 +01:00
remove redundant validate_addr_policies() checks
This commit is contained in:
parent
fd5eb23c29
commit
f22c063067
@ -376,12 +376,6 @@ validate_addr_policies(or_options_t *options, char **msg)
|
|||||||
if (parse_addr_policy(options->ReachableDirAddresses, &addr_policy,
|
if (parse_addr_policy(options->ReachableDirAddresses, &addr_policy,
|
||||||
ADDR_POLICY_ACCEPT))
|
ADDR_POLICY_ACCEPT))
|
||||||
REJECT("Error in ReachableDirAddresses entry.");
|
REJECT("Error in ReachableDirAddresses entry.");
|
||||||
if (parse_addr_policy(options->AuthDirReject, &addr_policy,
|
|
||||||
ADDR_POLICY_REJECT))
|
|
||||||
REJECT("Error in AuthDirReject entry.");
|
|
||||||
if (parse_addr_policy(options->AuthDirInvalid, &addr_policy,
|
|
||||||
ADDR_POLICY_REJECT))
|
|
||||||
REJECT("Error in AuthDirInvalid entry.");
|
|
||||||
|
|
||||||
err:
|
err:
|
||||||
addr_policy_list_free(addr_policy);
|
addr_policy_list_free(addr_policy);
|
||||||
|
Loading…
Reference in New Issue
Block a user