httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject cvs commit: httpd-2.0/server vhost.c
Date Tue, 25 Dec 2001 21:46:10 GMT
trawick     01/12/25 13:46:10

  Modified:    server   vhost.c
  Log:
  add a comment about the need to check for a host after returning
  from apr_parse_addr_port()
  
  Revision  Changes    Path
  1.65      +3 -0      httpd-2.0/server/vhost.c
  
  Index: vhost.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/server/vhost.c,v
  retrieving revision 1.64
  retrieving revision 1.65
  diff -u -r1.64 -r1.65
  --- vhost.c	2001/12/25 21:41:59	1.64
  +++ vhost.c	2001/12/25 21:46:10	1.65
  @@ -206,6 +206,9 @@
           }
       }
       rv = apr_parse_addr_port(&host, &scope_id, &port, w, p);
  +    /* If the string is "80", apr_parse_addr_port() will be happy and set
  +     * host to NULL and port to 80, so watch out for that.
  +     */
       if (rv != APR_SUCCESS) {
           return "The address or port is invalid";
       }
  
  
  

Mime
View raw message