]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
Fix bug 5840: Segfault in "rpcclient lsaaddacctrights"
authorVolker Lendecke <vl@samba.org>
Wed, 22 Oct 2008 12:26:05 +0000 (14:26 +0200)
committerVolker Lendecke <vl@samba.org>
Wed, 22 Oct 2008 12:31:40 +0000 (14:31 +0200)
source3/rpcclient/cmd_lsarpc.c

index aa8662ce9dad55f166aaf0cbec45f9bc0c47eb3e..6424f1b3af249ed3e752d727311871141a8576e8 100644 (file)
@@ -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]);
        }