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