]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3-lsa: Fix _lsa_LookupNames2() server implementation which always returned a NULL...
authorGünther Deschner <gd@samba.org>
Mon, 11 May 2009 16:27:40 +0000 (18:27 +0200)
committerKarolin Seeger <kseeger@samba.org>
Thu, 18 Jun 2009 10:50:24 +0000 (12:50 +0200)
Found by torture test.

This makes it possible to search for users while adding them to groups via
windows usermanager.

Fixes bug #6484.

Guenther

source/rpc_server/srv_lsa_nt.c

index 96ee36afde4dc49192ac6d2717dee0f1a114fb38..ec7d30a05937af6723f78b405277cd699354e895 100644 (file)
@@ -1090,6 +1090,7 @@ NTSTATUS _lsa_LookupNames2(pipes_struct *p,
 
        status = _lsa_LookupNames(p, &q);
 
+       sid_array2->count = sid_array->count;
        sid_array2->sids = TALLOC_ARRAY(p->mem_ctx, struct lsa_TranslatedSid2, sid_array->count);
        if (!sid_array2->sids) {
                return NT_STATUS_NO_MEMORY;