From a3eb0a32a9f36cc9799e11e43f4b95fa0df272a9 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sat, 20 Jun 2009 18:42:18 +0200 Subject: 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. --- source3/lib/tldap_util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/lib/tldap_util.c') diff --git a/source3/lib/tldap_util.c b/source3/lib/tldap_util.c index 5f85e7a1132..46540111c69 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"); -- cgit