41a6c3
--- a/modules/ldap/util_ldap.c 2018/02/20 13:00:39 1824871
41a6c3
+++ b/modules/ldap/util_ldap.c 2018/02/20 13:02:54 1824872
41a6c3
@@ -2858,7 +2858,6 @@
41a6c3
     st->search_cache_size = base->search_cache_size;
41a6c3
     st->compare_cache_ttl = base->compare_cache_ttl;
41a6c3
     st->compare_cache_size = base->compare_cache_size;
41a6c3
-    st->util_ldap_cache_lock = base->util_ldap_cache_lock;
41a6c3
 
41a6c3
     st->connections = NULL;
41a6c3
     st->ssl_supported = 0; /* not known until post-config and re-merged */
41a6c3
@@ -2977,12 +2976,12 @@
41a6c3
             st_vhost = (util_ldap_state_t *)
41a6c3
                        ap_get_module_config(s_vhost->module_config,
41a6c3
                                             &ldap_module);
41a6c3
-
41a6c3
+            st_vhost->util_ldap_cache = st->util_ldap_cache;
41a6c3
+            st_vhost->util_ldap_cache_lock = st->util_ldap_cache_lock;
41a6c3
 #if APR_HAS_SHARED_MEMORY
41a6c3
             st_vhost->cache_shm = st->cache_shm;
41a6c3
             st_vhost->cache_rmm = st->cache_rmm;
41a6c3
             st_vhost->cache_file = st->cache_file;
41a6c3
-            st_vhost->util_ldap_cache = st->util_ldap_cache;
41a6c3
             ap_log_error(APLOG_MARK, APLOG_DEBUG, result, s, APLOGNO(01316)
41a6c3
                          "LDAP merging Shared Cache conf: shm=0x%pp rmm=0x%pp "
41a6c3
                          "for VHOST: %s", st->cache_shm, st->cache_rmm,