[prev in list] [next in list] [prev in thread] [next in thread] 

List:       apache-cvs
Subject:    cvs commit: httpd-2.0/modules/http http_protocol.c
From:       jorton () apache ! org
Date:       2004-09-29 14:38:42
Message-ID: 20040929143842.7830.qmail () minotaur ! apache ! org
[Download RAW message or body]

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;
  
  
  
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic