]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3-groupdb: fix enum_aliasmem in ldb branch.
authorGünther Deschner <gd@samba.org>
Sun, 7 Jun 2009 09:23:09 +0000 (11:23 +0200)
committerKarolin Seeger <kseeger@samba.org>
Fri, 12 Jun 2009 06:51:31 +0000 (08:51 +0200)
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

source/groupdb/mapping_ldb.c

index 68e5b4cd5e965d1ca85f918779caf821f5209fcf..658009af2ead197bcdd8545df3f0da853c7340b7 100644 (file)
@@ -529,7 +529,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++) {