diff --git a/CHANGES b/CHANGES index 48fda0718f..d178390318 100644 --- a/CHANGES +++ b/CHANGES @@ -1,6 +1,9 @@ -*- coding: utf-8 -*- Changes with Apache 2.5.0 + *) mod_ldap: Stop leaking LDAP connections when 'LDAPConnectionPoolTTL 0' + is configured. PR 58037. [Ted Phelps ] + *) core: Allow spaces after chunk-size for compatibility with implementations using a pre-filled buffer, and log parsing failures at level INFO. [Yann Ylavic, Jeff Trawick] diff --git a/modules/ldap/util_ldap.c b/modules/ldap/util_ldap.c index ba11cd29a5..0281245b5b 100644 --- a/modules/ldap/util_ldap.c +++ b/modules/ldap/util_ldap.c @@ -163,10 +163,11 @@ static void uldap_connection_close(util_ldap_connection_t *ldc) /* mark our connection as available for reuse */ ldc->freed = apr_time_now(); ldc->r = NULL; -#if APR_HAS_THREADS - apr_thread_mutex_unlock(ldc->lock); -#endif } + +#if APR_HAS_THREADS + apr_thread_mutex_unlock(ldc->lock); +#endif }