[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor/master] Remove a redundant condition in compare_addr_to_node_policy



commit 7dcd105be34a4f44948383d21b5ee2eb4a3cbdd2
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
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 mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits