summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndreas Schneider <asn@redhat.com>2010-03-05 11:15:35 +0100
committerGünther Deschner <gd@samba.org>2010-03-05 21:27:15 +0100
commit47d366b5729b21e630760c36ef743dd5374a29fd (patch)
tree747f7ee743a590dec0751e089162ff6070492889 /source3
parentf40550335019aad82180f813f6299d440f4a5977 (diff)
downloadsamba-47d366b5729b21e630760c36ef743dd5374a29fd.tar.gz
samba-47d366b5729b21e630760c36ef743dd5374a29fd.tar.bz2
samba-47d366b5729b21e630760c36ef743dd5374a29fd.zip
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>
Diffstat (limited to 'source3')
-rw-r--r--source3/rpcclient/cmd_spoolss.c3
1 files changed, 1 insertions, 2 deletions
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 <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]);