git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4487f26
)
s3: Fix Coverity ID 242723 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 hnd 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 2394e22c55d8eaaf40515d1691a1f743e8c93608..b189fd7379ec6ac12c4af27e8ac0fba6d0638c16 100644
(file)
--- a/
source3/rpcclient/cmd_spoolss.c
+++ b/
source3/rpcclient/cmd_spoolss.c
@@
-3196,7
+3196,7
@@
static WERROR cmd_spoolss_rffpcnex(struct rpc_pipe_client *cli,
{
const char *printername;
const char *clientname;
- struct policy_handle hnd;
+ struct policy_handle hnd
= { 0, }
;
WERROR result;
NTSTATUS status;
struct spoolss_NotifyOption option;