diff options
author | Tim Potter <tpot@hp.com> | 2008-02-18 10:24:51 +1100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2008-02-18 10:15:53 +0100 |
commit | d85a2782a483e563a8b68924d4897a145bc25896 (patch) | |
tree | e5fb49f69082fadae7aeaf99d6074303ae498a02 /source/rpcclient | |
parent | 2b1eead269e95142576d0c8c259874324ba83502 (diff) | |
download | samba-d85a2782a483e563a8b68924d4897a145bc25896.tar.gz samba-d85a2782a483e563a8b68924d4897a145bc25896.tar.xz samba-d85a2782a483e563a8b68924d4897a145bc25896.zip |
Fix off-by-one bugs in subcommand argument passing.
Diffstat (limited to 'source/rpcclient')
-rw-r--r-- | source/rpcclient/cmd_samr.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/rpcclient/cmd_samr.c b/source/rpcclient/cmd_samr.c index f8b8ba893ca..8b4ee47a673 100644 --- a/source/rpcclient/cmd_samr.c +++ b/source/rpcclient/cmd_samr.c @@ -1044,8 +1044,8 @@ static NTSTATUS cmd_samr_enum_domains(struct rpc_pipe_client *cli, return NT_STATUS_OK; } - if (argc > 2) { - sscanf(argv[2], "%x", &access_mask); + if (argc > 1) { + sscanf(argv[1], "%x", &access_mask); } /* Get sam policy handle */ @@ -1194,11 +1194,11 @@ static NTSTATUS cmd_samr_query_aliasinfo(struct rpc_pipe_client *cli, sscanf(argv[2], "%i", &alias_rid); - if (argc > 3) { + if (argc > 2) { level = atoi(argv[3]); } - if (argc > 4) { + if (argc > 3) { sscanf(argv[4], "%x", &access_mask); } |