summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-03-15 11:05:48 +0100
committerVolker Lendecke <vl@samba.org>2011-03-15 11:10:45 +0100
commit6b584e0e9a93b6e2a4601635f019960acd0a2a1d (patch)
treef76e4baf33b0e4d520cbe75ed1b9ab1986c0fba9
parente68cf5e9bf10ebf24448d301047b2787838fa449 (diff)
downloadsamba-6b584e0e9a93b6e2a4601635f019960acd0a2a1d.tar.gz
samba-6b584e0e9a93b6e2a4601635f019960acd0a2a1d.tar.bz2
samba-6b584e0e9a93b6e2a4601635f019960acd0a2a1d.zip
s3: Fix Coverity ID 2281: Uninitialized read
We passed the structure including the uninitialized elements to dcerpc_winreg_SetValue.
-rw-r--r--source3/rpc_server/spoolss/srv_spoolss_util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/rpc_server/spoolss/srv_spoolss_util.c b/source3/rpc_server/spoolss/srv_spoolss_util.c
index 6ed6f342b5..62c95c980d 100644
--- a/source3/rpc_server/spoolss/srv_spoolss_util.c
+++ b/source3/rpc_server/spoolss/srv_spoolss_util.c
@@ -2228,7 +2228,7 @@ WERROR winreg_set_printer_dataex(TALLOC_CTX *mem_ctx,
uint32_t access_mask = SEC_FLAG_MAXIMUM_ALLOWED;
struct dcerpc_binding_handle *winreg_handle = NULL;
struct policy_handle hive_hnd, key_hnd;
- struct winreg_String wvalue;
+ struct winreg_String wvalue = { 0, };
char *path;
WERROR result = WERR_OK;
NTSTATUS status;