summaryrefslogtreecommitdiffstats
path: root/modules/ldap
diff options
context:
space:
mode:
authorStefan Fritsch <sf@apache.org>2010-04-05 23:17:08 +0200
committerStefan Fritsch <sf@apache.org>2010-04-05 23:17:08 +0200
commit8d143e15c8abbcabfc9953266dd9f432306b6237 (patch)
tree683372272c1381139a637eaec64ad938b52b4e91 /modules/ldap
parentfix potential file descriptor leak with DEBUG_CGI (diff)
downloadapache2-8d143e15c8abbcabfc9953266dd9f432306b6237.tar.xz
apache2-8d143e15c8abbcabfc9953266dd9f432306b6237.zip
fix more errors found by cppcheck
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@930962 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/ldap')
-rw-r--r--modules/ldap/util_ldap.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/ldap/util_ldap.c b/modules/ldap/util_ldap.c
index 713523698a..3aa1d3cc1f 100644
--- a/modules/ldap/util_ldap.c
+++ b/modules/ldap/util_ldap.c
@@ -231,10 +231,12 @@ static apr_status_t uldap_connection_cleanup(void *param)
*/
static apr_status_t util_ldap_connection_remove (void *param) {
util_ldap_connection_t *ldc = param, *l = NULL, *prev = NULL;
- util_ldap_state_t *st = ldc->st;
+ util_ldap_state_t *st;
if (!ldc) return APR_SUCCESS;
+ st = ldc->st;
+
uldap_connection_unbind(ldc);
#if APR_HAS_THREADS