From: Joe Orton Date: Tue, 2 Aug 2005 14:15:35 +0000 (+0000) Subject: * modules/ldap/util_ldap_cache.c (util_ldap_cache_init): Only remove X-Git-Tag: 2.1.7~5^2~47 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e3ee8fb587b542890e18b1187e642e6d0c63ef2d;p=apache * 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 --- diff --git a/modules/ldap/util_ldap_cache.c b/modules/ldap/util_ldap_cache.c index 313f380570..904d1721d1 100644 --- a/modules/ldap/util_ldap_cache.c +++ b/modules/ldap/util_ldap_cache.c @@ -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);