If the printprocessor is parsed from the inf file in the codepath:
setup_driver_name
find_driver_files
process_driver_section_printprocessor
Don't overwrite the value later on in setup_driver_name with the default "winprint"
Signed-off-by: Justin Stephenson <jstephen@redhat.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Bjoern Jacke <bjacke@samba.org>
return NT_STATUS_NO_MEMORY;
}
- r->print_processor = talloc_strdup(mem_ctx, "winprint");
if (r->print_processor == NULL) {
- return NT_STATUS_NO_MEMORY;
+ r->print_processor = talloc_strdup(mem_ctx, "winprint");
+ if (r->print_processor == NULL) {
+ return NT_STATUS_NO_MEMORY;
+ }
}
status = gp_inifile_getstring(ctx, "Version:Signature", &s);