mirror of
https://github.com/samba-team/samba.git
synced 2025-11-11 00:23:51 +03:00
r7713: fixed error display in ildap_search()
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
aec0544962
commit
abc9f4bd89
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user