httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From i...@apache.org
Subject cvs commit: httpd-2.0/modules/experimental cache_util.c
Date Mon, 26 Aug 2002 16:41:57 GMT
ianh        2002/08/26 09:41:56

  Modified:    .        CHANGES
               modules/experimental cache_util.c
  Log:
  Fix a segfault in mod_cache when url isn't passed
  
  Submitted by:	Kris Verbeeck <Kris.Verbeeck@ubizen.com>
  
  Revision  Changes    Path
  1.898     +2 -0      httpd-2.0/CHANGES
  
  Index: CHANGES
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/CHANGES,v
  retrieving revision 1.897
  retrieving revision 1.898
  diff -u -r1.897 -r1.898
  --- CHANGES	24 Aug 2002 19:03:33 -0000	1.897
  +++ CHANGES	26 Aug 2002 16:41:56 -0000	1.898
  @@ -1,5 +1,7 @@
   Changes with Apache 2.0.41
   
  +  *) Fix Segfault in mod_cache. [Kris Verbeeck <Kris.Verbeeck@ubizen.com>]
  +
     *) Fix a null pointer dereference in the merge_env_dir_configs
        function of the mod_env module. PR 11791
        [Paul J. Reder]
  
  
  
  1.18      +3 -0      httpd-2.0/modules/experimental/cache_util.c
  
  Index: cache_util.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/experimental/cache_util.c,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- cache_util.c	23 Jun 2002 06:10:00 -0000	1.17
  +++ cache_util.c	26 Aug 2002 16:41:56 -0000	1.18
  @@ -104,6 +104,9 @@
       const char *type = NULL;
       int i;
   
  +    /* we can't cache if there's no URL */
  +    if (!url) return NULL;
  +
       /* loop through all the cacheenable entries */
       for (i = 0; i < conf->cacheenable->nelts; i++) {
           struct cache_enable *ent = 
  
  
  

Mime
View raw message