1
0
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:
Andreas Schneider 2010-03-05 11:15:35 +01:00 committed by Günther Deschner
parent f405503350
commit 47d366b572

View File

@ -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]);