mirror of
https://github.com/samba-team/samba.git
synced 2025-09-19 13:44:20 +03:00
r1518: check for ldb_search giving -1 (indicating db corruption)
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
6e102f732e
commit
9af821c4df
@@ -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,
|
||||
|
Reference in New Issue
Block a user