mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-27 22:03: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,
|
||||
ADDR_POLICY_ACCEPT))
|
||||
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:
|
||||
addr_policy_list_free(addr_policy);
|
||||
|
Loading…
Reference in New Issue
Block a user