mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
s3-rpcclient: Leave setprinterdata directly if not enough args were passed.
If we don't pass enough arguments we don't have to close the connection. Signed-off-by: Günther Deschner <gd@samba.org>
This commit is contained in:
parent
f405503350
commit
47d366b572
@ -2395,8 +2395,7 @@ static WERROR cmd_spoolss_setprinterdata(struct rpc_pipe_client *cli,
|
||||
printf ("Usage: %s <printer> <string|binary|dword|multistring>"
|
||||
" <value> <data>\n",
|
||||
argv[0]);
|
||||
result = WERR_INVALID_PARAM;
|
||||
goto done;
|
||||
return WERR_OK;
|
||||
}
|
||||
|
||||
RPCCLIENT_PRINTERNAME(printername, cli, argv[1]);
|
||||
|
Loading…
Reference in New Issue
Block a user