commit 7dcd105be34a4f44948383d21b5ee2eb4a3cbdd2 Author: Nick Mathewson nickm@torproject.org Date: Fri Jul 8 14:11:49 2011 -0400
Remove a redundant condition in compare_addr_to_node_policy
A && A == A.
Found by frosty_un --- src/or/policies.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/or/policies.c b/src/or/policies.c index 1b5408c..f80808d 100644 --- a/src/or/policies.c +++ b/src/or/policies.c @@ -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
tor-commits@lists.torproject.org