summaryrefslogtreecommitdiff
path: root/src/providers/ldap
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2011-03-09 12:52:39 +0100
committerStephen Gallagher <sgallagh@redhat.com>2011-03-09 14:14:35 -0500
commitd0d3497c10a02e8489198dc3e1edc621bfac0c6d (patch)
treedc749939ee48b120d00c2f7d65370b7c1dcd251f /src/providers/ldap
parent17c440cc709467ffb465972a67094351bc445a24 (diff)
downloadsssd-d0d3497c10a02e8489198dc3e1edc621bfac0c6d.tar.gz
sssd-d0d3497c10a02e8489198dc3e1edc621bfac0c6d.tar.bz2
sssd-d0d3497c10a02e8489198dc3e1edc621bfac0c6d.zip
Release handle if not connected
Diffstat (limited to 'src/providers/ldap')
-rw-r--r--src/providers/ldap/sdap_async.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/providers/ldap/sdap_async.c b/src/providers/ldap/sdap_async.c
index 134f3972..ebd8d485 100644
--- a/src/providers/ldap/sdap_async.c
+++ b/src/providers/ldap/sdap_async.c
@@ -172,6 +172,7 @@ static void sdap_process_result(struct tevent_context *ev, void *pvt)
if (!sh->connected || !sh->ldap) {
DEBUG(2, ("ERROR: LDAP connection is not connected!\n"));
+ sdap_handle_release(sh);
return;
}