From 8b336211c3a03831a2192d5a5c7793c0f773340a Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Mon, 2 Mar 2009 11:21:26 +0100 Subject: s3-rpcclient: zero out devmode and secdesc in setdriver and setprinter command. Guenther --- source3/rpcclient/cmd_spoolss.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source3') 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; -- cgit