1
0
mirror of https://github.com/apache/httpd.git synced 2025-08-07 04:02:58 +03:00

* modules/ldap/util_ldap_cache.c (util_ldap_cache_init): Only remove

the shm segment by name if a name is configured.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@227012 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Joe Orton
2005-08-02 14:15:35 +00:00
parent 9582f97569
commit e3ee8fb587

View File

@@ -396,8 +396,10 @@ apr_status_t util_ldap_cache_init(apr_pool_t *pool, util_ldap_state_t *st)
apr_status_t result; apr_status_t result;
apr_size_t size; apr_size_t size;
/* Remove any existing shm segment with this name. */ if (st->cache_file) {
apr_shm_remove(st->cache_file, st->pool); /* Remove any existing shm segment with this name. */
apr_shm_remove(st->cache_file, st->pool);
}
size = APR_ALIGN_DEFAULT(st->cache_bytes); size = APR_ALIGN_DEFAULT(st->cache_bytes);