diff options
author | Volker Lendecke <vl@samba.org> | 2008-10-22 14:26:05 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2008-10-22 14:31:40 +0200 |
commit | f4e760faf96cd49d0491981d48a7ced96564ee40 (patch) | |
tree | 0e4d4d1da29e7bb947bd4195af5821c71536ebcb /source3 | |
parent | 1d9ea911e39b4619a0857171a3362bc2ff40bf96 (diff) | |
download | samba-f4e760faf96cd49d0491981d48a7ced96564ee40.tar.gz samba-f4e760faf96cd49d0491981d48a7ced96564ee40.tar.bz2 samba-f4e760faf96cd49d0491981d48a7ced96564ee40.zip |
Fix bug 5840: Segfault in "rpcclient lsaaddacctrights"
Diffstat (limited to 'source3')
-rw-r--r-- | source3/rpcclient/cmd_lsarpc.c | 2 |
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]); } |