diff options
author | Günther Deschner <gd@samba.org> | 2009-06-07 11:23:09 +0200 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2009-06-17 15:11:36 +0200 |
commit | d9e03e8cc55106abdbff3b74317a1f7d9f3f8cca (patch) | |
tree | daa221f763b3f7735227fe0976915169875cb8e0 /source3/groupdb | |
parent | ac1dd57829b7454753be08b05ee5aa008582cdf5 (diff) | |
download | samba-d9e03e8cc55106abdbff3b74317a1f7d9f3f8cca.tar.gz |
s3-groupdb: fix enum_aliasmem in ldb branch.
It is totally valid to have an alias with no members.
This fixes bug #6465.
Tridge, please check.
Found by RPC-SAMR torture test.
Guenther
(cherry picked from commit 08bb869d03520479989052b1fd9ef3f788d95589)
Diffstat (limited to 'source3/groupdb')
-rw-r--r-- | source3/groupdb/mapping_ldb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/groupdb/mapping_ldb.c b/source3/groupdb/mapping_ldb.c index 97f84f1a803..6bdbe592125 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;i<el->num_values;i++) { |