httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mar...@apache.org
Subject cvs commit: apache-1.3/src/main http_protocol.c
Date Wed, 29 May 2002 08:52:20 GMT
martin      02/05/29 01:52:20

  Modified:    src/main http_protocol.c
  Log:
  Make sure that 'n' has a defined value
  
  Revision  Changes    Path
  1.316     +3 -1      apache-1.3/src/main/http_protocol.c
  
  Index: http_protocol.c
  ===================================================================
  RCS file: /home/cvs/apache-1.3/src/main/http_protocol.c,v
  retrieving revision 1.315
  retrieving revision 1.316
  diff -u -r1.315 -r1.316
  --- http_protocol.c	21 May 2002 13:03:56 -0000	1.315
  +++ http_protocol.c	29 May 2002 08:52:20 -0000	1.316
  @@ -1048,8 +1048,10 @@
       if (2 == sscanf(r->protocol, "HTTP/%u.%u%n", &major, &minor, &n)
         && minor < HTTP_VERSION(1,0))	/* don't allow HTTP/0.1000 */
   	r->proto_num = HTTP_VERSION(major, minor);
  -    else
  +    else {
   	r->proto_num = HTTP_VERSION(1,0);
  +	n = 0;
  +    }
   
       /* Check for a valid protocol, and disallow everything but whitespace
        * after the protocol string */
  
  
  

Mime
View raw message