mirror of
https://github.com/samba-team/samba.git
synced 2024-12-29 11:21:54 +03:00
r7713: fixed error display in ildap_search()
This commit is contained in:
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);
|
||||
|
Loading…
Reference in New Issue
Block a user