From f5e9e1954c08cc7ee73477bc626cdb09df1d0284 Mon Sep 17 00:00:00 2001 From: =?utf8?q?G=C3=BCnther=20Deschner?= Date: Sun, 7 Jun 2009 11:23:09 +0200 Subject: [PATCH] s3-groupdb: fix enum_aliasmem in ldb branch. It is totally valid to have an alias with no members. Tridge, please check. Found by RPC-SAMR torture test. Guenther --- source3/groupdb/mapping_ldb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/groupdb/mapping_ldb.c b/source3/groupdb/mapping_ldb.c index 3fbc1829cde..cc06282aeea 100644 --- a/source3/groupdb/mapping_ldb.c +++ b/source3/groupdb/mapping_ldb.c @@ -523,7 +523,7 @@ static NTSTATUS enum_aliasmem(const DOM_SID *alias, DOM_SID **sids, size_t *num) el = ldb_msg_find_element(res->msgs[0], "member"); if (el == NULL) { talloc_free(dn); - return NT_STATUS_INTERNAL_DB_CORRUPTION; + return NT_STATUS_OK; } for (i=0;inum_values;i++) { -- 2.34.1