summaryrefslogtreecommitdiff
path: root/source3/lib/tldap_util.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-06-20 18:42:18 +0200
committerVolker Lendecke <vl@samba.org>2009-06-20 18:54:07 +0200
commita3eb0a32a9f36cc9799e11e43f4b95fa0df272a9 (patch)
tree5c012209735df158441de2632999d6975e89eb23 /source3/lib/tldap_util.c
parent22cb9bdfd3c3a6a036db08c9c10d7c2530167fc3 (diff)
downloadsamba-a3eb0a32a9f36cc9799e11e43f4b95fa0df272a9.tar.gz
samba-a3eb0a32a9f36cc9799e11e43f4b95fa0df272a9.tar.bz2
samba-a3eb0a32a9f36cc9799e11e43f4b95fa0df272a9.zip
Reorganize retrieving errors and server-sent controls
This attaches the data to the tldap_message instead of the tevent_req. It adds tldap_ctx_lastmsg() to retrieve the last message for the users of the sync wrappers.
Diffstat (limited to 'source3/lib/tldap_util.c')
-rw-r--r--source3/lib/tldap_util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/tldap_util.c b/source3/lib/tldap_util.c
index 5f85e7a113..46540111c6 100644
--- a/source3/lib/tldap_util.c
+++ b/source3/lib/tldap_util.c
@@ -318,7 +318,7 @@ const char *tldap_errstr(TALLOC_CTX *mem_ctx, struct tldap_context *ld, int rc)
const char *ld_error = NULL;
char *res;
- ld_error = tldap_ctx_diagnosticmessage(ld);
+ ld_error = tldap_msg_diagnosticmessage(tldap_ctx_lastmsg(ld));
res = talloc_asprintf(mem_ctx, "LDAP error %d (%s), %s", rc,
tldap_err2string(rc),
ld_error ? ld_error : "unknown");