summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2000-09-12 22:33:41 +0000
committerJeremy Allison <jra@samba.org>2000-09-12 22:33:41 +0000
commit9e1fbb0c2f1d2ad0c907f1e902e44ea7af214b57 (patch)
tree75f1f7ad718c0ab59e1fafec6b8da6d90ae23cd0
parent41d03a118c9981fc2159f37cd5ed4684e1d36037 (diff)
downloadsamba-9e1fbb0c2f1d2ad0c907f1e902e44ea7af214b57.tar.gz
Fix for enumjobs infor level 2 which caused smbd to coredump.
Uninitialized element in struct. Jeremy.
-rw-r--r--source/rpc_server/srv_spoolss_nt.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/rpc_server/srv_spoolss_nt.c b/source/rpc_server/srv_spoolss_nt.c
index 0464d252f01..5f69c097c7a 100644
--- a/source/rpc_server/srv_spoolss_nt.c
+++ b/source/rpc_server/srv_spoolss_nt.c
@@ -3424,6 +3424,7 @@ static BOOL fill_job_info_2(JOB_INFO_2 *job_info, print_queue_struct *queue,
init_unistr(&job_info->datatype, "RAW");
init_unistr(&job_info->printprocessor, "winprint");
init_unistr(&job_info->parameters, "");
+ init_unistr(&job_info->drivername, ntprinter->info_2->drivername);
init_unistr(&job_info->text_status, "");
/* and here the security descriptor */