Skip to content

Commit

Permalink
Fix segfault in util_ald_create_cache() when shared memory caching ha…
Browse files Browse the repository at this point in the history
…s been disabled

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102717 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
Bradley Nicholes committed Feb 21, 2004
1 parent b7655d6 commit 9327311
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/experimental/util_ldap_cache_mgr.c
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,8 @@ util_ald_cache_t *util_ald_create_cache(util_ldap_state_t *st,
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);
Expand Down

0 comments on commit 9327311

Please sign in to comment.