git.samba.org
/
obnox
/
samba
/
samba-obnox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa220c4
)
s3: Fix Coverity ID 242724 Uninitialized scalar variable
author
Volker Lendecke
<vl@samba.org>
Wed, 9 May 2012 08:56:54 +0000
(10:56 +0200)
committer
Volker Lendecke
<vl@samba.org>
Thu, 10 May 2012 07:11:57 +0000
(09:11 +0200)
In an error path we are closing pol without opening it
source3/rpcclient/cmd_spoolss.c
patch
|
blob
|
history
diff --git
a/source3/rpcclient/cmd_spoolss.c
b/source3/rpcclient/cmd_spoolss.c
index 2733aa3265dd6495f038f57658c0a5bcc26b4527..418ad3bcfbb0444d6a0f5994b7e245d1107705ae 100644
(file)
--- a/
source3/rpcclient/cmd_spoolss.c
+++ b/
source3/rpcclient/cmd_spoolss.c
@@
-2534,7
+2534,7
@@
static WERROR cmd_spoolss_setprinterdata(struct rpc_pipe_client *cli,
WERROR result;
NTSTATUS status;
const char *printername;
- struct policy_handle pol;
+ struct policy_handle pol
= { 0, }
;
union spoolss_PrinterInfo info;
enum winreg_Type type;
union spoolss_PrinterData data;