git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aec0544
)
r7713: fixed error display in ildap_search()
author
Andrew Tridgell
<tridge@samba.org>
Sat, 18 Jun 2005 07:54:14 +0000
(07:54 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 18:18:25 +0000
(13:18 -0500)
source/libcli/ldap/ldap_ildap.c
patch
|
blob
|
history
diff --git
a/source/libcli/ldap/ldap_ildap.c
b/source/libcli/ldap/ldap_ildap.c
index cfcb79f64fd520caa309464e9c5dcc3c38a87243..541797c25c7ec78ae27cb0fd3347f7ab5f36de05 100644
(file)
--- a/
source/libcli/ldap/ldap_ildap.c
+++ b/
source/libcli/ldap/ldap_ildap.c
@@
-189,6
+189,12
@@
NTSTATUS ildap_search(struct ldap_connection *conn, const char *basedn,
struct ldap_message *res;
status = ldap_result_n(req, i, &res);
if (!NT_STATUS_IS_OK(status)) break;
+
+ if (res->type == LDAP_TAG_SearchResultDone) {
+ status = ldap_check_response(conn, &res->r.GeneralResult);
+ break;
+ }
+
if (res->type != LDAP_TAG_SearchResultEntry) continue;
(*results) = talloc_realloc(conn, *results, struct ldap_message *, n+2);