summaryrefslogtreecommitdiff
path: root/source4/torture/rpc
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-05-06 15:26:37 +0200
committerMichael Adam <obnox@samba.org>2008-05-06 15:27:33 +0200
commit42059c7e7665833e0116dc4e1e9aa948726ec816 (patch)
tree1972a9fb687768382bde4b79c005613530123955 /source4/torture/rpc
parentf51a79889c769f0a30eef5bd8a486e08c6bbdad2 (diff)
downloadsamba-42059c7e7665833e0116dc4e1e9aa948726ec816.tar.gz
samba-42059c7e7665833e0116dc4e1e9aa948726ec816.tar.bz2
samba-42059c7e7665833e0116dc4e1e9aa948726ec816.zip
torture: use dom_idx after determining it in samba3rpc.c:get_usr_handle()
Michael (This used to be commit 334d76c3559870bd9dc9ef55c9b1a7ce21ee9d4c)
Diffstat (limited to 'source4/torture/rpc')
-rw-r--r--source4/torture/rpc/samba3rpc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/torture/rpc/samba3rpc.c b/source4/torture/rpc/samba3rpc.c
index 1103acaefa..17342f9b86 100644
--- a/source4/torture/rpc/samba3rpc.c
+++ b/source4/torture/rpc/samba3rpc.c
@@ -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;