Commit 532663eb authored by Joe Orton's avatar Joe Orton
Browse files

* 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
parent 7c4e02af
Loading
Loading
Loading
Loading
+2 −0
Changes for modules/ldap/util_ldap_cache.c: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -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;

    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);