1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

r1518: check for ldb_search giving -1 (indicating db corruption)

(This used to be commit 9af821c4df)
This commit is contained in:
Andrew Tridgell 2004-07-15 10:07:45 +00:00 committed by Gerald (Jerry) Carter
parent eeec610983
commit 90fbb2d01f

View File

@ -334,6 +334,9 @@ static NTSTATUS check_sam_security(const struct auth_context *auth_context,
mem_ctx, NULL, &group_msgs, group_attrs,
"(&(member=%s)(sAMAccountType=*))",
dn);
if (group_ret == -1) {
return NT_STATUS_INTERNAL_DB_CORRUPTION;
}
if (group_ret > 0 &&
!(groupSIDs = talloc_realloc_p((*server_info)->mem_ctx, groupSIDs,