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

[tor-commits] [tor/master] Removed redundant check_sockaddr_family_match call



commit d91bbf376c75fa339d6da278ff90d60eadc57a11
Author: Matthew Finkel <matthew.finkel@xxxxxxxxx>
Date:   Thu Aug 2 15:13:34 2012 -0400

    Removed redundant check_sockaddr_family_match call
---
 src/or/connection.c |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)

diff --git a/src/or/connection.c b/src/or/connection.c
index 777162c..b886a0e 100644
--- a/src/or/connection.c
+++ b/src/or/connection.c
@@ -1203,11 +1203,6 @@ connection_handle_listener_read(connection_t *conn, int new_type)
       return 0;
     }
 
-    if (check_sockaddr_family_match(remote->sa_family, conn) < 0) {
-      tor_close_socket(news);
-      return 0;
-    }
-
     tor_addr_from_sockaddr(&addr, remote, &port);
 
     /* process entrance policies here, before we even create the connection */



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits