[SCM] Samba Shared Repository - branch master updated

Jeremy Allison jra at samba.org
Tue Jan 18 15:46:02 MST 2011


The branch, master has been updated
       via  7754b75 Fix error where Windows client spoolss returns WERR_INVALID_DATA       W_ERROR(0x0000000D) on opening a printer. We can't return zero for devmode->size. Guenther please check !
      from  93733e4 s4:tls_tstream: also use a dynamic buffer for the pull side

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


- Log -----------------------------------------------------------------
commit 7754b75065c1e7bd3c0c6b2bf2f88394d3655a0e
Author: Jeremy Allison <jra at samba.org>
Date:   Tue Jan 18 14:00:44 2011 -0800

    Fix error where Windows client spoolss returns WERR_INVALID_DATA       W_ERROR(0x0000000D)
    on opening a printer. We can't return zero for devmode->size. Guenther please check !
    
    Autobuild-User: Jeremy Allison <jra at samba.org>
    Autobuild-Date: Tue Jan 18 23:45:33 CET 2011 on sn-devel-104

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

Summary of changes:
 source3/rpc_server/srv_spoolss_util.c |    4 ++++
 1 files changed, 4 insertions(+), 0 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 a2c47b0..89cdc2d 100644
--- a/source3/rpc_server/srv_spoolss_util.c
+++ b/source3/rpc_server/srv_spoolss_util.c
@@ -2210,6 +2210,10 @@ WERROR winreg_get_printer(TALLOC_CTX *mem_ctx,
 		}
 	}
 
+	if (info2->devmode) {
+		info2->devmode->size = ndr_size_spoolss_DeviceMode(info2->devmode, 0);
+	}
+
 	result = winreg_get_printer_secdesc(info2,
 					    server_info,
 					    msg_ctx,


-- 
Samba Shared Repository


More information about the samba-cvs mailing list