httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject cvs commit: httpd-2.0/server core.c
Date Thu, 13 Nov 2003 15:18:35 GMT
jim         2003/11/13 07:18:35

  Modified:    server   core.c
  Log:
  parsed_uri.port is only valid iff parsed_uri.port_str != NULL.
  Old code simply checked if it was non-zero, not if it
  was *valid*
  
  Revision  Changes    Path
  1.248     +1 -1      httpd-2.0/server/core.c
  
  Index: core.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/server/core.c,v
  retrieving revision 1.247
  retrieving revision 1.248
  diff -u -r1.247 -r1.248
  --- core.c	22 Oct 2003 17:07:26 -0000	1.247
  +++ core.c	13 Nov 2003 15:18:35 -0000	1.248
  @@ -927,7 +927,7 @@
            * URLs using the hostname and port supplied by the client if
            * any are supplied (otherwise it will use the canonical name).
            */
  -        port = r->parsed_uri.port ? r->parsed_uri.port :
  +        port = r->parsed_uri.port_str ? r->parsed_uri.port :
                  r->connection->local_addr->port ? r->connection->local_addr->port
:
                  r->server->port ? r->server->port :
                  ap_default_port(r);
  
  
  

Mime
View raw message