summaryrefslogtreecommitdiffstats
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:25:15 -0500
commit92a101b4040e2f31dd8e7cc8a8617a929448160b (patch)
treeed8dbc9512a886e3fa3725f583efec8546e4210a /src/providers/ldap
parent41a6e6721524b28cd677793c28b2d3fcf4fbc420 (diff)
downloadsssd-92a101b4040e2f31dd8e7cc8a8617a929448160b.tar.gz
sssd-92a101b4040e2f31dd8e7cc8a8617a929448160b.tar.xz
sssd-92a101b4040e2f31dd8e7cc8a8617a929448160b.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 134f3972b..ebd8d485b 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;
}