git.samba.org
/
jelmer
/
samba4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8798ce3
)
torture: use dom_idx after determining it in samba3rpc.c:get_usr_handle()
author
Michael Adam
<obnox@samba.org>
Tue, 6 May 2008 13:26:37 +0000
(15:26 +0200)
committer
Michael Adam
<obnox@samba.org>
Tue, 6 May 2008 13:27:33 +0000
(15:27 +0200)
Michael
source/torture/rpc/samba3rpc.c
patch
|
blob
|
history
diff --git
a/source/torture/rpc/samba3rpc.c
b/source/torture/rpc/samba3rpc.c
index 1103acaefa55ffedb46af4901eea63ee6c522b74..17342f9b867eeb2493bb41cb1be3559227b1267a 100644
(file)
--- a/
source/torture/rpc/samba3rpc.c
+++ b/
source/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;