httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jor...@apache.org
Subject cvs commit: httpd-2.0/modules/http http_protocol.c
Date Wed, 29 Sep 2004 14:38:42 GMT
jorton      2004/09/29 07:38:42

  Modified:    modules/http http_protocol.c
  Log:
  * modules/http/http_protocol.c (ap_http_filter): Always fail if the
  Content-Length header is an empty string; previously this was only
  an error with some strto* implementations.
  
  Revision  Changes    Path
  1.484     +1 -1      httpd-2.0/modules/http/http_protocol.c
  
  Index: http_protocol.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/http/http_protocol.c,v
  retrieving revision 1.483
  retrieving revision 1.484
  diff -d -w -u -r1.483 -r1.484
  --- http_protocol.c	15 Sep 2004 20:24:19 -0000	1.483
  +++ http_protocol.c	29 Sep 2004 14:38:42 -0000	1.484
  @@ -773,7 +773,7 @@
                * string (excluding leading space) (the endstr checks)
                * and a negative number. */
               if (apr_strtoff(&ctx->remaining, lenp, &endstr, 10)
  -                || *endstr || ctx->remaining < 0) {
  +                || endstr == lenp || *endstr || ctx->remaining < 0) {
                   apr_bucket_brigade *bb;
   
                   ctx->remaining = 0;
  
  
  

Mime
View raw message