[SCM] Samba Shared Repository - branch master updated

Günther Deschner gd at samba.org
Fri Apr 9 10:44:57 MDT 2010


The branch, master has been updated
       via  357006b... s3-spoolss: Fix two uninitialized vars in spoolss util code.
      from  202d330... s3: re-run make samba3-idl.

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 357006bf074a0c6788b948f0c0260ec85caeec09
Author: Günther Deschner <gd at samba.org>
Date:   Fri Apr 9 18:44:19 2010 +0200

    s3-spoolss: Fix two uninitialized vars in spoolss util code.
    
    Guenther

-----------------------------------------------------------------------

Summary of changes:
 source3/rpc_server/srv_spoolss_util.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/rpc_server/srv_spoolss_util.c b/source3/rpc_server/srv_spoolss_util.c
index c3aafe3..0037f66 100644
--- a/source3/rpc_server/srv_spoolss_util.c
+++ b/source3/rpc_server/srv_spoolss_util.c
@@ -441,6 +441,7 @@ static WERROR winreg_printer_enumvalues(TALLOC_CTX *mem_ctx,
 
 		val.type = type;
 		val.data_length = data_size;
+		val.data = NULL;
 		if (val.data_length) {
 			val.data = talloc(enum_values, DATA_BLOB);
 			if (val.data == NULL) {
@@ -1549,7 +1550,7 @@ WERROR winreg_printer_setform1(struct pipes_struct *p,
 	uint32_t i;
 	WERROR result;
 	NTSTATUS status;
-	TALLOC_CTX *tmp_ctx;
+	TALLOC_CTX *tmp_ctx = NULL;
 
 	for (i = 0; i < num_builtin; i++) {
 		if (strequal(builtin_forms1[i].form_name, form->form_name)) {


-- 
Samba Shared Repository


More information about the samba-cvs mailing list