1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-10 12:58:35 +03:00

Fix for enumjobs infor level 2 which caused smbd to coredump.

Uninitialized element in struct.
Jeremy.
This commit is contained in:
Jeremy Allison -
parent 41d03a118c
commit 9e1fbb0c2f

View File

@ -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->datatype, "RAW");
init_unistr(&job_info->printprocessor, "winprint"); init_unistr(&job_info->printprocessor, "winprint");
init_unistr(&job_info->parameters, ""); init_unistr(&job_info->parameters, "");
init_unistr(&job_info->drivername, ntprinter->info_2->drivername);
init_unistr(&job_info->text_status, ""); init_unistr(&job_info->text_status, "");
/* and here the security descriptor */ /* and here the security descriptor */