svn commit: samba r18898 - in branches: SAMBA_3_0/source/rpc_server SAMBA_3_0_23/source/rpc_server

jra at samba.org jra at samba.org
Mon Sep 25 16:26:25 GMT 2006


Author: jra
Date: 2006-09-25 16:26:25 +0000 (Mon, 25 Sep 2006)
New Revision: 18898

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=18898

Log:
Fix for bug #4100 from Udo Eberhardt <udo.eberhardt at thesycon.de>.
Ensure we initialize values for smb_io_notify_info_data_strings to
fix crash.
Jeremy.

Modified:
   branches/SAMBA_3_0/source/rpc_server/srv_spoolss_nt.c
   branches/SAMBA_3_0_23/source/rpc_server/srv_spoolss_nt.c


Changeset:
Modified: branches/SAMBA_3_0/source/rpc_server/srv_spoolss_nt.c
===================================================================
--- branches/SAMBA_3_0/source/rpc_server/srv_spoolss_nt.c	2006-09-25 16:19:30 UTC (rev 18897)
+++ branches/SAMBA_3_0/source/rpc_server/srv_spoolss_nt.c	2006-09-25 16:26:25 UTC (rev 18898)
@@ -2887,6 +2887,9 @@
 				   NT_PRINTER_INFO_LEVEL *printer,
 				   TALLOC_CTX *mem_ctx)
 {
+	/* for a dummy implementation we have to zero the fields */
+	data->notify_data.data.length = 0;
+	data->notify_data.data.string = NULL;
 }
 
 /*******************************************************************

Modified: branches/SAMBA_3_0_23/source/rpc_server/srv_spoolss_nt.c
===================================================================
--- branches/SAMBA_3_0_23/source/rpc_server/srv_spoolss_nt.c	2006-09-25 16:19:30 UTC (rev 18897)
+++ branches/SAMBA_3_0_23/source/rpc_server/srv_spoolss_nt.c	2006-09-25 16:26:25 UTC (rev 18898)
@@ -2897,6 +2897,9 @@
 				   NT_PRINTER_INFO_LEVEL *printer,
 				   TALLOC_CTX *mem_ctx)
 {
+	/* for a dummy implementation we have to zero the fields */
+	data->notify_data.data.length = 0;
+	data->notify_data.data.string = NULL;
 }
 
 /*******************************************************************



More information about the samba-cvs mailing list