summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-03-02 11:21:26 +0100
committerGünther Deschner <gd@samba.org>2009-03-02 14:25:01 +0100
commit8b336211c3a03831a2192d5a5c7793c0f773340a (patch)
tree2ceb5e53168eb80c16e159b5932be323841b540a /source3
parent6d27a89ada8ff7ed2c697ef714c49e64a0463a01 (diff)
downloadsamba-8b336211c3a03831a2192d5a5c7793c0f773340a.tar.gz
samba-8b336211c3a03831a2192d5a5c7793c0f773340a.tar.bz2
samba-8b336211c3a03831a2192d5a5c7793c0f773340a.zip
s3-rpcclient: zero out devmode and secdesc in setdriver and setprinter command.
Guenther
Diffstat (limited to 'source3')
-rw-r--r--source3/rpcclient/cmd_spoolss.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/rpcclient/cmd_spoolss.c b/source3/rpcclient/cmd_spoolss.c
index c68cf00530..5b55ac3e2a 100644
--- a/source3/rpcclient/cmd_spoolss.c
+++ b/source3/rpcclient/cmd_spoolss.c
@@ -511,6 +511,8 @@ static WERROR cmd_spoolss_setprinter(struct rpc_pipe_client *cli,
/* Modify the comment. */
info.info2.comment = comment;
+ info.info2.secdesc = NULL;
+ info.info2.devmode = NULL;
info_ctr.level = 2;
info_ctr.info.info2 = (struct spoolss_SetPrinterInfo2 *)&info.info2;
@@ -1608,6 +1610,9 @@ static WERROR cmd_spoolss_setdriver(struct rpc_pipe_client *cli,
/* Set the printer driver */
info.info2.drivername = argv[2];
+ info.info2.devmode = NULL;
+ info.info2.secdesc = NULL;
+
info_ctr.level = 2;
info_ctr.info.info2 = (struct spoolss_SetPrinterInfo2 *)&info.info2;