torture: use dom_idx after determining it in samba3rpc.c:get_usr_handle()
authorMichael Adam <obnox@samba.org>
Tue, 6 May 2008 13:26:37 +0000 (15:26 +0200)
committerMichael Adam <obnox@samba.org>
Tue, 6 May 2008 13:27:33 +0000 (15:27 +0200)
Michael

source/torture/rpc/samba3rpc.c

index 1103acaefa55ffedb46af4901eea63ee6c522b74..17342f9b867eeb2493bb41cb1be3559227b1267a 100644 (file)
@@ -426,7 +426,7 @@ static NTSTATUS get_usr_handle(struct smbcli_state *cli,
                           "builtin") ? 1:0;
 
        l.in.connect_handle = &conn_handle;
-       domain_name.string = enumdom.out.sam->entries[0].name.string;
+       domain_name.string = enumdom.out.sam->entries[dom_idx].name.string;
        *domain = talloc_strdup(mem_ctx, domain_name.string);
        l.in.domain_name = &domain_name;