httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject cvs commit: httpd-2.0/modules/experimental util_ldap_cache_mgr.c
Date Fri, 07 Nov 2003 10:49:35 GMT
trawick     2003/11/07 02:49:35

  Modified:    modules/experimental util_ldap_cache_mgr.c
  Log:
  fix another segfault condition in ldap cache code
  
  PR:              18756
  Submitted by:	 Matthieu Estrade
  Reviewed by:	 Jeff Trawick
  
  Revision  Changes    Path
  1.7       +3 -1      httpd-2.0/modules/experimental/util_ldap_cache_mgr.c
  
  Index: util_ldap_cache_mgr.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/experimental/util_ldap_cache_mgr.c,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- util_ldap_cache_mgr.c	6 Nov 2003 20:45:56 -0000	1.6
  +++ util_ldap_cache_mgr.c	7 Nov 2003 10:49:35 -0000	1.7
  @@ -398,9 +398,11 @@
       if (cache == NULL || payload == NULL)
           return;
   
  +    if ((node = (util_cache_node_t *)util_ald_alloc(cache->rmm_addr, sizeof(util_cache_node_t)))
== NULL)
  +        return;
  +
       cache->inserts++;
       hashval = (*cache->hash)(payload) % cache->size;
  -    node = (util_cache_node_t *)util_ald_alloc(cache->rmm_addr, sizeof(util_cache_node_t));
       node->add_time = apr_time_now();
       node->payload = (*cache->copy)(cache, payload);
       node->next = cache->nodes[hashval];
  
  
  

Mime
View raw message