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 cache_hash.c
Date Fri, 10 May 2002 17:15:35 GMT
stoddard    02/05/10 10:15:35

  Modified:    modules/experimental cache_hash.c
  Log:
  Fix segfault triggered when the malloc() in find_entry() fails.
  
  Patch submitted by "Jean-Jacques Clar" <JJCLAR@novell.com>
  
  Revision  Changes    Path
  1.5       +2 -1      httpd-2.0/modules/experimental/cache_hash.c
  
  Index: cache_hash.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/experimental/cache_hash.c,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- cache_hash.c	6 May 2002 13:12:03 -0000	1.4
  +++ cache_hash.c	10 May 2002 17:15:35 -0000	1.5
  @@ -293,7 +293,8 @@
       cache_hash_entry_t **hep, *tmp;
       const void *tval;
       hep = find_entry(ht, key, klen, val);
  -    if (*hep) {
  +    /* If hep == NULL, then the malloc() in find_entry failed */
  +    if (hep && *hep) {
           if (!val) {
               /* delete entry */
               tval = (*hep)->val;
  
  
  

Mime
View raw message