summaryrefslogtreecommitdiff
path: root/source3/rpc_server/spoolss
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-03-15 10:58:55 +0100
committerVolker Lendecke <vl@samba.org>2011-03-15 11:10:45 +0100
commit2b26c86fe6727fafef0dd5079fd75a334ea49b63 (patch)
tree32225819253bfff171bbd4ccc08debd4ad5c19d2 /source3/rpc_server/spoolss
parentc09877113d793f57e43a73fa6ac1e55ab7307047 (diff)
downloadsamba-2b26c86fe6727fafef0dd5079fd75a334ea49b63.tar.gz
samba-2b26c86fe6727fafef0dd5079fd75a334ea49b63.tar.bz2
samba-2b26c86fe6727fafef0dd5079fd75a334ea49b63.zip
s3: Fix Coverity ID 2285: Uninitialized read
We passed the structure including the uninitialized elements to dcerpc_winreg_DeleteValue.
Diffstat (limited to 'source3/rpc_server/spoolss')
-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 049abe40fd..cfbe113c49 100644
--- a/source3/rpc_server/spoolss/srv_spoolss_util.c
+++ b/source3/rpc_server/spoolss/srv_spoolss_util.c
@@ -2517,7 +2517,7 @@ WERROR winreg_delete_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;