git.samba.org
/
kamenim
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f405503
)
s3-rpcclient: Leave setprinterdata directly if not enough args were passed.
author
Andreas Schneider
<asn@redhat.com>
Fri, 5 Mar 2010 10:15:35 +0000
(11:15 +0100)
committer
Günther Deschner
<gd@samba.org>
Fri, 5 Mar 2010 20:27:15 +0000
(21:27 +0100)
If we don't pass enough arguments we don't have to close the connection.
Signed-off-by: Günther Deschner <gd@samba.org>
source3/rpcclient/cmd_spoolss.c
patch
|
blob
|
history
diff --git
a/source3/rpcclient/cmd_spoolss.c
b/source3/rpcclient/cmd_spoolss.c
index b88ff10baa23ad6173fd2cb9623493b739901844..ecbc341b1627639e79f083f7499a894fa9c65eab 100644
(file)
--- 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]);