summaryrefslogtreecommitdiffstats
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:26:16 -0500
commit1a23caf7ca69bb7a16aec3e093ad6d64116d87f3 (patch)
tree9521eddd4320e126fb896a54e22939de54eb7004 /src/providers
parentfa3f237542fdb057909016196eaa3a903c34b09c (diff)
downloadsssd_unused-1a23caf7ca69bb7a16aec3e093ad6d64116d87f3.tar.gz
sssd_unused-1a23caf7ca69bb7a16aec3e093ad6d64116d87f3.tar.xz
sssd_unused-1a23caf7ca69bb7a16aec3e093ad6d64116d87f3.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);