r21259: Fix coverity bug id #340. No way to process
authorJeremy Allison <jra@samba.org>
Fri, 9 Feb 2007 05:16:25 +0000 (05:16 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:17:52 +0000 (12:17 -0500)
logon parameter as the code was written.
Jeremy.

source/rpcclient/cmd_netlogon.c

index 5a2dd00f9800bb3fe58f356e66f9ac16197158d8..7794c809191530a9a9fe43c0e7341854a9ed83b5 100644 (file)
@@ -342,7 +342,7 @@ static NTSTATUS cmd_netlogon_sam_logon(struct rpc_pipe_client *cli,
 
        /* Check arguments */
 
-       if (argc < 3 || argc > 6) {
+       if (argc < 3 || argc > 7) {
                fprintf(stderr, "Usage: samlogon <username> <password> [workstation]"
                        "[logon_type (1 or 2)] [auth level (2 or 3)] [logon_parameter]\n");
                return NT_STATUS_OK;