diff options
author | Tim Potter <tpot@samba.org> | 2000-04-07 02:16:12 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2000-04-07 02:16:12 +0000 |
commit | 938307ebf220d3381fa0fc9710a4f3191c25935e (patch) | |
tree | 87e95f11909b3fd762861c3815b846fd9dd7fd3a | |
parent | a999ce68a463c6d52e6aacc9b19f11303bd9c7e5 (diff) | |
download | samba-938307ebf220d3381fa0fc9710a4f3191c25935e.tar.gz |
Return from cmd_sam_create_dom_group() if not enough or too many arguments
passed.
-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]; |