You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by bn...@apache.org on 2004/02/21 01:50:20 UTC

cvs commit: httpd-2.0/modules/experimental util_ldap_cache_mgr.c

bnicholes    2004/02/20 16:50:20

  Modified:    modules/experimental util_ldap_cache_mgr.c
  Log:
  Fix segfault in util_ald_create_cache() when shared memory caching has been disabled
  
  Revision  Changes    Path
  1.15      +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.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- util_ldap_cache_mgr.c	9 Feb 2004 20:29:18 -0000	1.14
  +++ util_ldap_cache_mgr.c	21 Feb 2004 00:50:20 -0000	1.15
  @@ -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);