Same for cmd_sam_create_dom_alias.
authorTim Potter <tpot@samba.org>
Fri, 7 Apr 2000 02:18:04 +0000 (02:18 +0000)
committerTim Potter <tpot@samba.org>
Fri, 7 Apr 2000 02:18:04 +0000 (02:18 +0000)
source/rpcclient/cmd_samr.c

index e6e46e02df5d62cc036f518512f43cff6b126cec..28a89cc5ba8112f1845dc042fc2f6f7d62b5a946 100644 (file)
@@ -1319,10 +1319,11 @@ void cmd_sam_create_dom_alias(struct client_info *info, int argc,
        }
 
 
-       if (argc < 2)
+       if ((argc < 2) || (argc > 3))
        {
                report(out_hnd,
                       "createalias: <acct name> [acct description]\n");
+                return;
        }
 
        acct_name = argv[1];