mirror of
https://github.com/apache/httpd.git
synced 2025-08-05 16:55:50 +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:
@@ -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_size_t size;
|
||||
|
||||
/* Remove any existing shm segment with this name. */
|
||||
apr_shm_remove(st->cache_file, st->pool);
|
||||
if (st->cache_file) {
|
||||
/* Remove any existing shm segment with this name. */
|
||||
apr_shm_remove(st->cache_file, st->pool);
|
||||
}
|
||||
|
||||
size = APR_ALIGN_DEFAULT(st->cache_bytes);
|
||||
|
||||
|
Reference in New Issue
Block a user