Ticket #6517: 0001-Removed-redundant-check_sockaddr_family_match-call.patch

File 0001-Removed-redundant-check_sockaddr_family_match-call.patch, 838 bytes (added by sysrqb, 7 years ago)
  • src/or/connection.c

    From d91bbf376c75fa339d6da278ff90d60eadc57a11 Mon Sep 17 00:00:00 2001
    From: Matthew Finkel <matthew.finkel@gmail.com>
    Date: Thu, 2 Aug 2012 15:13:34 -0400
    Subject: [PATCH] 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 b connection_handle_listener_read(connection_t *conn, int new_type) 
    12031203      return 0;
    12041204    }
    12051205
    1206     if (check_sockaddr_family_match(remote->sa_family, conn) < 0) {
    1207       tor_close_socket(news);
    1208       return 0;
    1209     }
    1210 
    12111206    tor_addr_from_sockaddr(&addr, remote, &port);
    12121207
    12131208    /* process entrance policies here, before we even create the connection */