r14217: Fix Coverity Bug # 7
authorVolker Lendecke <vlendec@samba.org>
Sat, 11 Mar 2006 23:07:22 +0000 (23:07 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:15:17 +0000 (11:15 -0500)
source/rpcclient/cmd_samr.c

index bee739f3996a1b70b82d3b68643f7df57c3ba05e..e2f4a5ccc24edeaea32174a4b14734b32f9cf9c4 100644 (file)
@@ -1163,7 +1163,7 @@ static NTSTATUS cmd_samr_query_dispinfo(struct rpc_pipe_client *cli,
        int loop_count = 0;
        BOOL got_params = False; /* Use get_query_dispinfo_params() or not? */
 
-       if (argc > 5) {
+       if (argc > 6) {
                printf("Usage: %s [info level] [start index] [max entries] [max size] [access mask]\n", argv[0]);
                return NT_STATUS_OK;
        }