1
0
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:
Andrew Tridgell 2005-06-18 07:54:14 +00:00 committed by Gerald (Jerry) Carter
parent aec0544962
commit abc9f4bd89

View File

@ -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);