r18898: Fix for bug #4100 from Udo Eberhardt <udo.eberhardt@thesycon.de>.
authorJeremy Allison <jra@samba.org>
Mon, 25 Sep 2006 16:26:25 +0000 (16:26 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:14:44 +0000 (12:14 -0500)
Ensure we initialize values for smb_io_notify_info_data_strings to
fix crash.
Jeremy.
(This used to be commit ceefb8dd3ca67449d5afbf556e9879abb37830ac)

source3/rpc_server/srv_spoolss_nt.c

index 1a396a2391c1bbdd4924c1ebf58bd20f5a87aa25..cd69fdf1079ecdb54f7c4b0ff8ad564d234a1364 100644 (file)
@@ -2887,6 +2887,9 @@ static void spoolss_notify_devmode(int snum,
                                   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;
 }
 
 /*******************************************************************