httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bri...@apache.org
Subject cvs commit: httpd-2.0/modules/http http_protocol.c
Date Fri, 06 Sep 2002 01:27:49 GMT
brianp      2002/09/05 18:27:49

  Modified:    modules/http http_protocol.c
  Log:
  Clean up the temporary brigade in error cases in ap_discard_request_body()
  
  Revision  Changes    Path
  1.458     +3 -0      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.457
  retrieving revision 1.458
  diff -u -r1.457 -r1.458
  --- http_protocol.c	6 Sep 2002 01:18:55 -0000	1.457
  +++ http_protocol.c	6 Sep 2002 01:27:48 -0000	1.458
  @@ -1912,9 +1912,11 @@
                * Otherwise, we should assume we have a bad request.
                */
               if (rv == AP_FILTER_ERROR) {
  +                apr_brigade_destroy(bb);
                   return rv;
               }
               else {
  +                apr_brigade_destroy(bb);
                   return HTTP_BAD_REQUEST;
               }
           }
  @@ -1938,6 +1940,7 @@
                */
               rv = apr_bucket_read(bucket, &data, &len, APR_BLOCK_READ);
               if (rv != APR_SUCCESS) {
  +                apr_brigade_destroy(bb);
                   return HTTP_BAD_REQUEST;
               }
           }
  
  
  

Mime
View raw message