diff options
author | Eric Covener <covener@apache.org> | 2015-06-15 20:21:27 +0200 |
---|---|---|
committer | Eric Covener <covener@apache.org> | 2015-06-15 20:21:27 +0200 |
commit | b7ebba0417f56631fb4ac9488e64c562821a55a5 (patch) | |
tree | 005f8c41b4283e62d58b314fb264203313bebf56 /modules/ldap | |
parent | Rebuil. (diff) | |
download | apache2-b7ebba0417f56631fb4ac9488e64c562821a55a5.tar.xz apache2-b7ebba0417f56631fb4ac9488e64c562821a55a5.zip |
LDAP connection pool did not release/close connections with
"LDAPConnectionPoolTTL 0". PR58037.
Submitted by: Ted Phelps <phelps gnusto.com>
committed by: covener
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1685650 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/ldap')
-rw-r--r-- | modules/ldap/util_ldap.c | 5 |
1 files changed, 3 insertions, 2 deletions
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); + apr_thread_mutex_unlock(ldc->lock); #endif - } } |