httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bnicho...@apache.org
Subject cvs commit: httpd-2.0/modules/experimental util_ldap_cache_mgr.c
Date Mon, 01 Mar 2004 18:04:45 GMT
bnicholes    2004/03/01 10:04:45

  Modified:    modules/experimental Tag: APACHE_2_0_BRANCH
                        util_ldap_cache_mgr.c
  Log:
  Fix segfault in util_ald_create_cache() when shared memory caching has been disabled
  
  Reviewed: bnicholes, minfrin, trawick
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.3.2.7   +2 -0      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.3.2.6
  retrieving revision 1.3.2.7
  diff -u -r1.3.2.6 -r1.3.2.7
  --- util_ldap_cache_mgr.c	11 Feb 2004 18:07:46 -0000	1.3.2.6
  +++ util_ldap_cache_mgr.c	1 Mar 2004 18:04:45 -0000	1.3.2.7
  @@ -262,6 +262,8 @@
           return NULL;
   
   #if APR_HAS_SHARED_MEMORY
  +    if (!st->cache_rmm)
  +        return NULL;
       cache = (util_ald_cache_t *)apr_rmm_addr_get(st->cache_rmm, apr_rmm_calloc(st->cache_rmm,
sizeof(util_ald_cache_t)));
   #else
       cache = (util_ald_cache_t *)calloc(sizeof(util_ald_cache_t), 1);
  
  
  

Mime
View raw message