From 47d366b5729b21e630760c36ef743dd5374a29fd Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Fri, 5 Mar 2010 11:15:35 +0100 Subject: s3-rpcclient: Leave setprinterdata directly if not enough args were passed. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit If we don't pass enough arguments we don't have to close the connection. Signed-off-by: Günther Deschner --- source3/rpcclient/cmd_spoolss.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'source3/rpcclient') diff --git a/source3/rpcclient/cmd_spoolss.c b/source3/rpcclient/cmd_spoolss.c index b88ff10baa..ecbc341b16 100644 --- a/source3/rpcclient/cmd_spoolss.c +++ b/source3/rpcclient/cmd_spoolss.c @@ -2395,8 +2395,7 @@ static WERROR cmd_spoolss_setprinterdata(struct rpc_pipe_client *cli, printf ("Usage: %s " " \n", argv[0]); - result = WERR_INVALID_PARAM; - goto done; + return WERR_OK; } RPCCLIENT_PRINTERNAME(printername, cli, argv[1]); -- cgit