From: Matthew Finkel Date: Thu, 2 Aug 2012 19:13:34 +0000 (-0400) Subject: Removed redundant check_sockaddr_family_match call X-Git-Tag: tor-0.2.4.1-alpha~72 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d91bbf376c75fa339d6da278ff90d60eadc57a11;p=thirdparty%2Ftor.git Removed redundant check_sockaddr_family_match call --- diff --git a/src/or/connection.c b/src/or/connection.c index 777162ca70..b886a0ec35 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 */