httpd-apreq-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject cvs commit: httpd-apreq-2/src apreq_params.c
Date Fri, 02 Jul 2004 06:32:53 GMT
joes        2004/07/01 23:32:53

  Modified:    src      apreq_params.c
  Log:
  apr_table_do() will clobber va_arg if there's no NULL argument in the list.
  
  Submitted by: joes
  Reviewed by: randyk
  
  Revision  Changes    Path
  1.43      +2 -2      httpd-apreq-2/src/apreq_params.c
  
  Index: apreq_params.c
  ===================================================================
  RCS file: /home/cvs/httpd-apreq-2/src/apreq_params.c,v
  retrieving revision 1.42
  retrieving revision 1.43
  diff -u -r1.42 -r1.43
  --- apreq_params.c	29 Jun 2004 18:34:48 -0000	1.42
  +++ apreq_params.c	2 Jul 2004 06:32:53 -0000	1.43
  @@ -148,13 +148,13 @@
       apr_array_header_t *arr = apr_array_make(p, apr_table_elts(req->args)->nelts,
                                                sizeof(apreq_param_t *));
   
  -    apr_table_do(param_push, arr, req->args, key);
  +    apr_table_do(param_push, arr, req->args, key, NULL);
   
       do s = apreq_env_read(req->env, APR_BLOCK_READ, APREQ_READ_AHEAD);
       while (s == APR_INCOMPLETE);
   
       if (req->body)
  -        apr_table_do(param_push, arr, req->body, key);
  +        apr_table_do(param_push, arr, req->body, key, NULL);
   
       return arr;
   }
  
  
  

Mime
View raw message