Ticket #16247: connection.c.diff

File connection.c.diff, 812 bytes (added by jojelino, 4 years ago)

Patch for this ticket.

  • src/or/connection.c

    diff --git a/src/or/connection.c b/src/or/connection.c
    index 24d47cc..679b7b2 100644
    a b connection_listener_new(const struct sockaddr *listensockaddr, 
    12911291  conn->port = gotPort;
    12921292  tor_addr_copy(&conn->addr, &addr);
    12931293
     1294  memcpy(&lis_conn->entry_cfg, &port_cfg->entry_cfg, sizeof(entry_port_cfg_t));
     1295
    12941296  if (port_cfg->entry_cfg.isolation_flags) {
    12951297    lis_conn->entry_cfg.isolation_flags = port_cfg->entry_cfg.isolation_flags;
    12961298    if (port_cfg->entry_cfg.session_group >= 0) {
    connection_listener_new(const struct sockaddr *listensockaddr, 
    13061308    }
    13071309  }
    13081310
    1309   memcpy(&lis_conn->entry_cfg, &port_cfg->entry_cfg, sizeof(entry_port_cfg_t));
    13101311
    13111312  if (type != CONN_TYPE_AP_LISTENER) {
    13121313    lis_conn->entry_cfg.ipv4_traffic = 1;