diff options
-rw-r--r-- | source/rpcclient/cmd_samr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/rpcclient/cmd_samr.c b/source/rpcclient/cmd_samr.c index 9004c823a5f..e6e46e02df5 100644 --- a/source/rpcclient/cmd_samr.c +++ b/source/rpcclient/cmd_samr.c @@ -1910,11 +1910,11 @@ void cmd_sam_create_dom_group(struct client_info *info, int argc, } } - - if (argc < 2) + if ((argc < 2) || (argc > 3)) { report(out_hnd, "creategroup: <acct name> [acct description]\n"); + return; } acct_name = argv[1]; |