Remove a redundant condition in compare_addr_to_node_policy

A && A == A.

Found by frosty_un
This commit is contained in:
Nick Mathewson 2011-07-08 14:11:49 -04:00
parent a4d339cf08
commit 7dcd105be3

View File

@ -1490,7 +1490,7 @@ compare_tor_addr_to_node_policy(const tor_addr_t *addr, uint16_t port,
if (node->ri)
return compare_tor_addr_to_addr_policy(addr, port, node->ri->exit_policy);
else if (node->md && node->md) {
else if (node->md) {
if (node->md->exit_policy == NULL)
return ADDR_POLICY_REJECTED;
else