joes        2003/05/20 15:08:49

  Modified:    env      mod_apreq.c
  Log:
  Safer to assign req->body = NULL, since this condition is used to signal 
whether or not parsing has already begun.
  
  Revision  Changes    Path
  1.14      +2 -1      httpd-apreq-2/env/mod_apreq.c
  
  Index: mod_apreq.c
  ===================================================================
  RCS file: /home/cvs/httpd-apreq-2/env/mod_apreq.c,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- mod_apreq.c       20 May 2003 20:42:16 -0000      1.13
  +++ mod_apreq.c       20 May 2003 22:08:49 -0000      1.14
  @@ -248,10 +248,11 @@
                * NOTE:
                *   req->parser != NULL && req->body != NULL, since 
                *   apreq_parse_request was called at least once already.
  +             * 
                */
   
                req->parser = NULL;
  -             apr_table_clear(req->body);
  +             req->body = NULL;
   
                ctx->bytes_seen = 0;
                apr_brigade_cleanup(ctx->bb);
  
  
  

Reply via email to