summaryrefslogtreecommitdiffstats
path: root/src
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:07 -0500
commitd2e36fc224f57204dee65e232ff8e16f66e2ecd9 (patch)
treee7c8f9bb538b345d30caf2f91cb84cdc5fa891c0 /src
parent58bccb8042091fecf529b6d89ccf83e9e9056f5c (diff)
downloadsssd-d2e36fc224f57204dee65e232ff8e16f66e2ecd9.tar.gz
sssd-d2e36fc224f57204dee65e232ff8e16f66e2ecd9.tar.xz
sssd-d2e36fc224f57204dee65e232ff8e16f66e2ecd9.zip
Release handle if not connected
Diffstat (limited to 'src')
-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;
}