diff options
author | Nick Mathewson <nickm@torproject.org> | 2011-07-08 14:11:49 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2011-07-08 14:11:49 -0400 |
commit | 7dcd105be34a4f44948383d21b5ee2eb4a3cbdd2 (patch) | |
tree | 97072fd7fde10efc52604e314c045e801f74a64c /src/or/policies.c | |
parent | a4d339cf082f27fa5852a383ff9d3a9d2d37e08d (diff) | |
download | tor-7dcd105be34a4f44948383d21b5ee2eb4a3cbdd2.tar.gz tor-7dcd105be34a4f44948383d21b5ee2eb4a3cbdd2.zip |
Remove a redundant condition in compare_addr_to_node_policy
A && A == A.
Found by frosty_un
Diffstat (limited to 'src/or/policies.c')
-rw-r--r-- | 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 1b5408c777..f80808dd62 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 |