summaryrefslogtreecommitdiff
path: root/source4/auth
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-07-15 10:07:45 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:57:38 -0500
commit90fbb2d01f203b3243856242b88c60a3e5fcf286 (patch)
tree0d3d8f6bb016017e713de35fc6281ac13522a8ba /source4/auth
parenteeec6109833571f275a9adc220b5bbb05d1cb2bd (diff)
downloadsamba-90fbb2d01f203b3243856242b88c60a3e5fcf286.tar.gz
samba-90fbb2d01f203b3243856242b88c60a3e5fcf286.tar.bz2
samba-90fbb2d01f203b3243856242b88c60a3e5fcf286.zip
r1518: check for ldb_search giving -1 (indicating db corruption)
(This used to be commit 9af821c4dfa47d68be5e062028331c80df64f82b)
Diffstat (limited to 'source4/auth')
-rw-r--r--source4/auth/auth_sam.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/auth/auth_sam.c b/source4/auth/auth_sam.c
index ac7a6e5693..b4dc29be85 100644
--- a/source4/auth/auth_sam.c
+++ b/source4/auth/auth_sam.c
@@ -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,