summaryrefslogtreecommitdiff
path: root/source3/passdb
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-02-20 17:53:26 +0100
committerVolker Lendecke <vl@samba.org>2011-02-20 20:50:14 +0100
commit4c45078d8f8d7cde4ecb5e7b08d96b9abd538ea5 (patch)
tree1e32183d8033217a8fc36bad55fa1dac4ffdf2d0 /source3/passdb
parent288b396411bfe8f8eb7353193991a1910c97751e (diff)
downloadsamba-4c45078d8f8d7cde4ecb5e7b08d96b9abd538ea5.tar.gz
samba-4c45078d8f8d7cde4ecb5e7b08d96b9abd538ea5.tar.bz2
samba-4c45078d8f8d7cde4ecb5e7b08d96b9abd538ea5.zip
s3: Fix pdb_ads_enum_group_members for empty groups
Diffstat (limited to 'source3/passdb')
-rw-r--r--source3/passdb/pdb_ads.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/passdb/pdb_ads.c b/source3/passdb/pdb_ads.c
index 91a981b91f..490c78c88c 100644
--- a/source3/passdb/pdb_ads.c
+++ b/source3/passdb/pdb_ads.c
@@ -1061,7 +1061,9 @@ static NTSTATUS pdb_ads_enum_group_members(struct pdb_methods *m,
}
if (!tldap_entry_values(msg[0], "member", &blobs, &num_members)) {
- return NT_STATUS_INTERNAL_DB_CORRUPTION;
+ *pmembers = NULL;
+ *pnum_members = 0;
+ return NT_STATUS_OK;
}
members = talloc_array(mem_ctx, uint32_t, num_members);