summaryrefslogtreecommitdiff
path: root/modules/ldap
diff options
context:
space:
mode:
authorEric Covener <covener@apache.org>2015-06-15 18:21:27 +0000
committerEric Covener <covener@apache.org>2015-06-15 18:21:27 +0000
commitb7ebba0417f56631fb4ac9488e64c562821a55a5 (patch)
tree005f8c41b4283e62d58b314fb264203313bebf56 /modules/ldap
parentf1bc72ce4bd575b35b26577c9f1652492345bf21 (diff)
downloadhttpd-b7ebba0417f56631fb4ac9488e64c562821a55a5.tar.gz
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.c5
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
- }
}