httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dr...@locus.apache.org
Subject cvs commit: apache-2.0/src/main http_core.c
Date Fri, 03 Nov 2000 15:08:09 GMT
dreid       00/11/03 07:08:07

  Modified:    src/main http_core.c
  Log:
  More removal of raw sockaddr references. This shouldn't cause any problems,
  but folks may want to test it :)
  
  Revision  Changes    Path
  1.198     +2 -2      apache-2.0/src/main/http_core.c
  
  Index: http_core.c
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/main/http_core.c,v
  retrieving revision 1.197
  retrieving revision 1.198
  diff -u -r1.197 -r1.198
  --- http_core.c	2000/11/03 14:48:40	1.197
  +++ http_core.c	2000/11/03 15:08:06	1.198
  @@ -776,8 +776,8 @@
   
       if (d->use_canonical_name == USE_CANONICAL_NAME_OFF
   	|| d->use_canonical_name == USE_CANONICAL_NAME_DNS) {
  -        return r->hostname ? ntohs(r->connection->local_addr.sin_port)
  -			   : port;
  +        if (r->hostname)
  +           apr_get_local_port(&port, r->connection->client_socket);
       }
       /* default */
       return port;
  
  
  

Mime
View raw message