summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2006-09-25 16:26:25 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:14:44 -0500
commitfec98506440bbff0c340cc6e35767f0e81398519 (patch)
treee809b9664411f6687bd96bebbeff83b625deedca /source3
parentf1964048a5ce7b71d89953ba77ddeb5f34d91747 (diff)
downloadsamba-fec98506440bbff0c340cc6e35767f0e81398519.tar.gz
samba-fec98506440bbff0c340cc6e35767f0e81398519.tar.bz2
samba-fec98506440bbff0c340cc6e35767f0e81398519.zip
r18898: Fix for bug #4100 from Udo Eberhardt <udo.eberhardt@thesycon.de>.
Ensure we initialize values for smb_io_notify_info_data_strings to fix crash. Jeremy. (This used to be commit ceefb8dd3ca67449d5afbf556e9879abb37830ac)
Diffstat (limited to 'source3')
-rw-r--r--source3/rpc_server/srv_spoolss_nt.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c
index 1a396a2391..cd69fdf107 100644
--- a/source3/rpc_server/srv_spoolss_nt.c
+++ b/source3/rpc_server/srv_spoolss_nt.c
@@ -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;
}
/*******************************************************************