remove redundant validate_addr_policies() checks

This commit is contained in:
Roger Dingledine 2010-01-12 12:19:49 -05:00
parent fd5eb23c29
commit f22c063067

View File

@ -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);