summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-10-22 14:26:05 +0200
committerVolker Lendecke <vl@samba.org>2008-10-22 14:31:40 +0200
commitf4e760faf96cd49d0491981d48a7ced96564ee40 (patch)
tree0e4d4d1da29e7bb947bd4195af5821c71536ebcb
parent1d9ea911e39b4619a0857171a3362bc2ff40bf96 (diff)
downloadsamba-f4e760faf96cd49d0491981d48a7ced96564ee40.tar.gz
samba-f4e760faf96cd49d0491981d48a7ced96564ee40.tar.bz2
samba-f4e760faf96cd49d0491981d48a7ced96564ee40.zip
Fix bug 5840: Segfault in "rpcclient lsaaddacctrights"
-rw-r--r--source3/rpcclient/cmd_lsarpc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/rpcclient/cmd_lsarpc.c b/source3/rpcclient/cmd_lsarpc.c
index aa8662ce9d..6424f1b3af 100644
--- a/source3/rpcclient/cmd_lsarpc.c
+++ b/source3/rpcclient/cmd_lsarpc.c
@@ -789,7 +789,7 @@ static NTSTATUS cmd_lsa_add_acct_rights(struct rpc_pipe_client *cli,
return NT_STATUS_NO_MEMORY;
}
- for (i=0; i<argc-1; i++) {
+ for (i=0; i<argc-2; i++) {
init_lsa_StringLarge(&rights.names[i], argv[i+2]);
}