httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stodd...@apache.org
Subject cvs commit: httpd-2.0/modules/experimental mod_cache.c
Date Tue, 17 Dec 2002 17:10:05 GMT
stoddard    2002/12/17 09:10:05

  Modified:    modules/experimental Tag: APACHE_2_0_BRANCH mod_cache.c
  Log:
  Fix PR 15113, a core dump in cache_in_filter when
  a redirect occurs. The code was passing a format string and
  integer to apr_pstrcat. Changed to apr_psprintf. [Paul J. Reder]
  
  PR: 15113
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.64.2.2  +2 -2      httpd-2.0/modules/experimental/mod_cache.c
  
  Index: mod_cache.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/experimental/mod_cache.c,v
  retrieving revision 1.64.2.1
  retrieving revision 1.64.2.2
  diff -u -r1.64.2.1 -r1.64.2.2
  --- mod_cache.c	11 Dec 2002 16:49:49 -0000	1.64.2.1
  +++ mod_cache.c	17 Dec 2002 17:10:05 -0000	1.64.2.2
  @@ -536,11 +536,11 @@
                * We include 304 Not Modified here too as this is the origin server
                * telling us to serve the cached copy.
                */
  -              reason = apr_pstrcat(p, "Response status %d", r->status);
  +              reason = apr_psprintf(p, "Response status %d", r->status);
           } 
           else if (exps != NULL && exp == APR_DATE_BAD) {
               /* if a broken Expires header is present, don't cache it */
  -            reason = apr_pstrcat(p, "Broken expires header %s", exp);
  +            reason = apr_psprintf(p, "Broken expires header %s", exp);
           }
           else if (r->args && exps == NULL) {
               /* if query string present but no expiration time, don't cache it
  
  
  

Mime
View raw message