summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-01-23 13:26:55 +0100
committerVolker Lendecke <vl@samba.org>2010-01-23 14:35:37 +0100
commitc2c71b8e053ea5a619c94d9dc30a01ae3627da91 (patch)
tree4fc354c1823f8d8313501abc421f900769fd1390 /source3
parent9fcbe3a65c6f30754f3f705c3e0b4a4ae150c679 (diff)
downloadsamba-c2c71b8e053ea5a619c94d9dc30a01ae3627da91.tar.gz
samba-c2c71b8e053ea5a619c94d9dc30a01ae3627da91.tar.bz2
samba-c2c71b8e053ea5a619c94d9dc30a01ae3627da91.zip
s3: Fix sending NULL sids to lookupsids3
Diffstat (limited to 'source3')
-rw-r--r--source3/rpcclient/cmd_lsarpc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/rpcclient/cmd_lsarpc.c b/source3/rpcclient/cmd_lsarpc.c
index 488f8f545c..3e7d1851db 100644
--- a/source3/rpcclient/cmd_lsarpc.c
+++ b/source3/rpcclient/cmd_lsarpc.c
@@ -451,8 +451,8 @@ static NTSTATUS cmd_lsa_lookup_sids3(struct rpc_pipe_client *cli,
}
for (i = 0; i < sids.num_sids; i++) {
- sids.sids[0].sid = string_sid_talloc(sids.sids, argv[i + 1]);
- if (!sids.sids[0].sid) {
+ sids.sids[i].sid = string_sid_talloc(sids.sids, argv[i + 1]);
+ if (!sids.sids[i].sid) {
result = NT_STATUS_INVALID_SID;
goto done;
}