summaryrefslogtreecommitdiff
path: root/src/providers
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2012-02-19 21:01:42 +0100
committerStephen Gallagher <sgallagh@redhat.com>2012-02-21 21:28:49 -0500
commit4f2951e4d3b4470babd76dffff7ef89b1f7bd7d3 (patch)
tree5c22389580c5dd9a6b118e0e554aa534b6b5d9fd /src/providers
parent237eb8b15829c9b9dd630c6db7fff9f1f2e27ed7 (diff)
downloadsssd-4f2951e4d3b4470babd76dffff7ef89b1f7bd7d3.tar.gz
sssd-4f2951e4d3b4470babd76dffff7ef89b1f7bd7d3.tar.bz2
sssd-4f2951e4d3b4470babd76dffff7ef89b1f7bd7d3.zip
End request if ldap_parse_result fails
Diffstat (limited to 'src/providers')
-rw-r--r--src/providers/ldap/sdap_async.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/providers/ldap/sdap_async.c b/src/providers/ldap/sdap_async.c
index 996a6716..2b9268de 100644
--- a/src/providers/ldap/sdap_async.c
+++ b/src/providers/ldap/sdap_async.c
@@ -1254,6 +1254,9 @@ static void sdap_get_generic_ext_done(struct sdap_op *op,
DEBUG(2, ("Unexpected result from ldap: %s(%d), %s\n",
sss_ldap_err2string(result), result,
errmsg ? errmsg : "no errmsg set"));
+ ldap_memfree(errmsg);
+ tevent_req_error(req, EIO);
+ return;
}
ldap_memfree(errmsg);