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:
parent
eeec610983
commit
90fbb2d01f
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user